aboutsummaryrefslogtreecommitdiff
path: root/tags/0.6rc1/utils/convert-template-scheme
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2009-03-06 02:11:03 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2009-03-06 02:11:03 +0000
commitb9c230aa292d218765e752517e7ea4d3a74bd8b5 (patch)
tree1e47bdc0d3d140a57435e13d001a5db6bb6a7680 /tags/0.6rc1/utils/convert-template-scheme
parent52a3537b8ebca3a5146cf363ffa6d716f2b00da0 (diff)
downloadsimplepkg-b9c230aa292d218765e752517e7ea4d3a74bd8b5.tar.gz
simplepkg-b9c230aa292d218765e752517e7ea4d3a74bd8b5.tar.bz2
simplepkg 0.6rc1
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@799 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'tags/0.6rc1/utils/convert-template-scheme')
-rwxr-xr-xtags/0.6rc1/utils/convert-template-scheme35
1 files changed, 35 insertions, 0 deletions
diff --git a/tags/0.6rc1/utils/convert-template-scheme b/tags/0.6rc1/utils/convert-template-scheme
new file mode 100755
index 0000000..de7e507
--- /dev/null
+++ b/tags/0.6rc1/utils/convert-template-scheme
@@ -0,0 +1,35 @@
+#!/bin/bash
+#
+# This software is free software; you can redistribute it and/or modify it under the
+# terms of the GNU General Public License as published by the Free Software
+# Foundation; either version 2 of the License, or any later version.
+#
+# This software is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+# Place - Suite 330, Boston, MA 02111-1307, USA
+#
+# 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
+