OLD | NEW |
| (Empty) |
1 #!/bin/sh | |
2 # | |
3 # update.sh | |
4 # | |
5 # update copyright dates in files | |
6 # Copyright (c) 2001-2006, Cisco Systems, Inc. | |
7 # All rights reserved. | |
8 # | |
9 # Redistribution and use in source and binary forms, with or without | |
10 # modification, are permitted provided that the following conditions | |
11 # are met: | |
12 # | |
13 # Redistributions of source code must retain the above copyright | |
14 # notice, this list of conditions and the following disclaimer. | |
15 # | |
16 # Redistributions in binary form must reproduce the above | |
17 # copyright notice, this list of conditions and the following | |
18 # disclaimer in the documentation and/or other materials provided | |
19 # with the distribution. | |
20 # | |
21 # Neither the name of the Cisco Systems, Inc. nor the names of its | |
22 # contributors may be used to endorse or promote products derived | |
23 # from this software without specific prior written permission. | |
24 # | |
25 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
26 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
27 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | |
28 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | |
29 # COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, | |
30 # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |
31 # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |
32 # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
33 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |
34 # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
35 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | |
36 # OF THE POSSIBILITY OF SUCH DAMAGE. | |
37 | |
38 a=`find . -name "*.[ch]"` | |
39 for x in $a; do | |
40 sed 's/(c) 2001-2005/(c) 2001-2006/' $x > $x.tmp; | |
41 mv $x.tmp $x; | |
42 done | |
43 | |
44 | |
45 | |
46 | |
OLD | NEW |