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