ccollect/tools/config-pre-0.4-to-0.4.sub.sh
Nico Schottelius 81df2e5a21 Fix for ccollect 0.4 fixup scripts
Now using two temp-files in fixup scripts.

And reversed moving of directories.
2006-04-27 10:42:16 +02:00

24 lines
463 B
Bash
Executable file

#!/bin/sh
# Nico Schottelius
# Do Apr 27 09:13:26 CEST 2006
#
master=$(echo $0 | sed 's/\.sub//')
if [ $# -ne 1 ]; then
echo "$0:"
echo ""
echo " DO NOT CALL ME DIRECTLY"
echo ""
echo "Use $master, please."
exit 23
fi
# strip trailing /
oldname=$(echo $1 | sed 's,/$,,')
# replace the last component of the path "intervalls"
newname=$(echo $oldname | sed 's/intervalls$/intervals/')
echo mv "$oldname" "$newname"
mv "$oldname" "$newname"