aboutsummaryrefslogtreecommitdiff
path: root/scripts/convert-help-to-standard.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/convert-help-to-standard.sh')
-rwxr-xr-xscripts/convert-help-to-standard.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/convert-help-to-standard.sh b/scripts/convert-help-to-standard.sh
index 5dfb7b2f..54ee131a 100755
--- a/scripts/convert-help-to-standard.sh
+++ b/scripts/convert-help-to-standard.sh
@@ -10,8 +10,10 @@
# renamed by their respective maintainers.
for helpfile in help-*.pd ; do
- mv "$helpfile" "`echo $helpfile | sed 's/^help\-\(.*\)\.pd$/\1-help.pd/'`"
-# echo "SWAP $helpfile `echo $helpfile | sed 's/^help\-\(.*\)\.pd$/\1-help.pd/'`"
+ 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/'`"
+ fi
done
# this isn't used yet