www.nico.schottelius.org/software/ccollect/ccollect-0.6.2/tools/config-pre-0.6-to-0.6.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

22 lines
406 B
Bash

#!/bin/sh
# Nico Schottelius, 20070816-2227
# Transfer configuration to 0.6 layout (subscript)
# Copying: GPLv3
#
if [ $# -ne 1 ]; then
echo "$0: rsync_options file"
echo ""
echo " Fix pre 0.6 configuration directories to match 0.6 style (sub)"
echo ""
exit 23
fi
tmp=$(mktemp)
echo "Working on $1 ..."
for option in $(cat "$1"); do
echo "${option}" >> "${tmp}"
done
mv ${tmp} "$1"