www.nico.schottelius.org/software/ccollect/ccollect-0.5.2/tools/config-pre-0.4-to-0.4.sub.sh
Nico Schottelius 7a4e82d87a raw import of ccollect from unix.schottelius.org
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-05-26 23:45:19 +02:00

24 lines
463 B
Bash

#!/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"