]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
templatepkg: small fixes
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Thu, 5 Apr 2007 21:10:42 +0000 (21:10 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Thu, 5 Apr 2007 21:10:42 +0000 (21:10 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@262 04377dda-e619-0410-9926-eae83683ac58

trunk/src/templatepkg

index 3d2287bc526fd9b78d38f06acf2f1481502f5945..aaa3effea9463102d84de5be30af8680564905b2 100755 (executable)
@@ -195,11 +195,15 @@ function template_create {
     if ! svn_check $TEMPLATE_BASE.d; then
       svn mkdir $TEMPLATE_BASE.d
       info_commit="yes"
+    else
+      mkdir $TEMPLATE_BASE.d
     fi
 
     if ! svn_check $TEMPLATE_BASE.s; then
-      svn mkdir $TEMPLATE.s
+      svn mkdir $TEMPLATE_BASE.s
       info_commit="yes"
+    else
+      mkdir $TEMPLATE_BASE.d
     fi
 
     if ! svn_check $TEMPLATE_BASE.template; then
@@ -274,11 +278,11 @@ function template_update {
     if [ -f $TEMPLATE ]; then
       if ! `grep -v -e "^#" $TEMPLATE | cut -d : -f 1 | awk '{ print $1 }' | grep -q -e "^$pack\$"`; then
         echo $pack >> $TEMPLATE
-        echo Added $pack on $TEMPLATE
+        echo Added $pack on $TEMPLATE
       fi
     else
       echo $pack >> $TEMPLATE
-      echo Added $pack on $TEMPLATE
+      echo Added $pack on $TEMPLATE
     fi
   done