diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/convert-help-to-standard.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/convert-help-to-standard.sh b/scripts/convert-help-to-standard.sh index 54ee131a..56175fd1 100755 --- a/scripts/convert-help-to-standard.sh +++ b/scripts/convert-help-to-standard.sh @@ -11,8 +11,13 @@ for helpfile in help-*.pd ; do if [ -e $helpfile ]; then - mv "$helpfile" "`echo $helpfile | sed 's/^help\-\(.*\)\.pd$/\1-help.pd/'`" - echo "SWAP $helpfile FOR `echo $helpfile | sed 's/^help\-\(.*\)\.pd$/\1-help.pd/'`" + newhelpfile=`echo $helpfile | sed 's/^help\-\(.*\)\.pd$/\1-help.pd/'` + if [ "$helpfile" != "$newhelpfile" ]; then + echo " swap $helpfile" "$newhelpfile" + mv "$helpfile" "$newhelpfile" + else + echo "SAMEFILE $helpfile" + fi fi done |