aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-07-12 04:42:43 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-07-12 04:42:43 +0000
commit028238ad9e80a34190e624ed5c775f79638f3783 (patch)
tree77de04181b11e83b7fdd4de6a8ff40adc222c848 /scripts
parent6f3c3effc17b699404d18d5cd3229e8b1c4d01a5 (diff)
added test to see if any files need renaming
svn path=/trunk/; revision=3315
Diffstat (limited to 'scripts')
-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