75c3046a11c0cb11ae7afb07904016f2929999f5
[synfig.git] / synfig-studio / trunk / fixer
1 #!/bin/bash
2
3 TEMPFILENAME=~/deleteme.tmp
4
5 SEDSCRIPT='
6 s/\*\*  Copyright (c) 2002 Robert B\. Quattlebaum Jr\./**       Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley/;
7 s/\*\*  This software and associated documentation/**   This package is free software; you can redistribute it and\/or/;
8 s/\*\*  are CONFIDENTIAL and PROPRIETARY property of/** modify it under the terms of the GNU General Public License as/;
9 s/\*\*  the above-mentioned copyright holder./**        published by the Free Software Foundation; either version 2 of\
10 **      the License, or (at your option) any later version./;
11
12 s/\*\*  You may not copy, print, publish, or in any/**  This package is distributed in the hope that it will be useful,/;
13 s/\*\*  other way distribute this software without/**   but WITHOUT ANY WARRANTY; without even the implied warranty of/;
14 s/\*\*  a prior written agreement with/**       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU/;
15 s/\*\*  the copyright holder\./**       General Public License for more details./;
16
17 s/n\*\* /\
18 **      /;
19
20 ';
21
22 #for filename in `find . -name "*sinfg*" -a ! -name '*svn*'` ; do {
23 #       newfilename=`echo $filename | sed "$SEDSCRIPT"`;
24 #       echo $filename '=>' $newfilename;
25 #       svn rename $filename  $newfilename || exit 2;
26 #} ; done
27
28
29 #exit 0;
30
31 for filename in `find . -name '*.[ch]*' -o -name '*.am' -o -name '*.px' -o -name '*.ac' -o -name '*.nsh' -o -name '*.in' | grep -v .svn` ; do {
32         sed "$SEDSCRIPT" < $filename > $TEMPFILENAME && { diff -q $TEMPFILENAME $filename || cp $TEMPFILENAME $filename ;  }
33 } ; done