From 005c11c828bec5a42ca4a083cb8a38ba9beff7a3 Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 6 Apr 2007 20:03:24 +0000 Subject: some fixes git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@295 04377dda-e619-0410-9926-eae83683ac58 --- trunk/utils/convert-template-scheme | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 trunk/utils/convert-template-scheme (limited to 'trunk/utils/convert-template-scheme') diff --git a/trunk/utils/convert-template-scheme b/trunk/utils/convert-template-scheme new file mode 100755 index 0000000..319d215 --- /dev/null +++ b/trunk/utils/convert-template-scheme @@ -0,0 +1,23 @@ +#!/bin/bash +# +# script for converting simplepkg templates +# to the 0.5 own-folder format +# + +cwd="/etc/simplepkg" +cd $cwd + +for file in `ls *.template`; do + cd $cwd + template="`echo $file | cut -d . -f 1`" + mkdir templates/$template + mv $template.d templates/$template/ + mv $template.s templates/$templates/ + mv $template.template templates/$template/ + cd templates/$template/$template.s + # optional step + # if [ "$template" != "vserver" ]; then + # ln -sf ../../../defaults/templatesvserver/vserver.s/vserver.sh + # fi +done + -- cgit v1.2.3