forked from ungleich-public/ccollect
Add subscript
This commit is contained in:
parent
39c4e83fbc
commit
967613b4c5
1 changed files with 20 additions and 0 deletions
20
tools/config-pre-0.6-to-0.6.sub.sh
Executable file
20
tools/config-pre-0.6-to-0.6.sub.sh
Executable file
|
@ -0,0 +1,20 @@
|
||||||
|
#!/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)
|
||||||
|
|
||||||
|
for option in $(cat "$1"); do
|
||||||
|
echo "${option}" >> "${tmp}"
|
||||||
|
done
|
||||||
|
mv ${tmp} "$1"
|
Loading…
Reference in a new issue