X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Ffixer;h=1ea3926e8ece1ce8e325a8f354c6002de4c5848b;hb=74d03302d1e6f05f1f90d4c2a3b38a03aa51dc86;hp=4bb7098ceab16130665cdea6d695abbcc0d8af8f;hpb=3a3c4bca3a17137bec5d7960560934b91ef4146e;p=synfig.git diff --git a/synfig-studio/trunk/fixer b/synfig-studio/trunk/fixer index 4bb7098..1ea3926 100755 --- a/synfig-studio/trunk/fixer +++ b/synfig-studio/trunk/fixer @@ -2,9 +2,33 @@ TEMPFILENAME=~/deleteme.tmp -for filename in `find . -name '*.[ch]*'` ; do { - sed ' -s/SigC::Signal./sigc::signal/g; +SEDSCRIPT=' +s/bigfoot/deepdarc/; -' < $filename > $TEMPFILENAME && ( diff -q $TEMPFILENAME $filename || cp $TEMPFILENAME $filename ) +s/\*\* Copyright (c) 2002 Robert B\. Quattlebaum Jr\./** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley/; +s/\*\* This software and associated documentation/** This package is free software; you can redistribute it and\/or/; +s/\*\* are CONFIDENTIAL and PROPRIETARY property of/** modify it under the terms of the GNU General Public License as/; +s/\*\* the above-mentioned copyright holder./** published by the Free Software Foundation; either version 2 of\ +** the License, or (at your option) any later version./; + +s/\*\* You may not copy, print, publish, or in any/** This package is distributed in the hope that it will be useful,/; +s/\*\* other way distribute this software without/** but WITHOUT ANY WARRANTY; without even the implied warranty of/; +s/\*\* a prior written agreement with/** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU/; +s/\*\* the copyright holder\./** General Public License for more details./; + +s/n\*\* /\ +** /; +'; + +#for filename in `find . -name "*sinfg*" -a ! -name '*svn*'` ; do { +# newfilename=`echo $filename | sed "$SEDSCRIPT"`; +# echo $filename '=>' $newfilename; +# svn rename $filename $newfilename || exit 2; +#} ; done + + +#exit 0; + +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 { + sed "$SEDSCRIPT" < $filename > $TEMPFILENAME && { diff -q $TEMPFILENAME $filename || cp $TEMPFILENAME $filename ; } } ; done