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

trunk/src/templatepkg

index 88dd4dbce1c4f31be9056061991077228837bc0c..e17bb82112b31866409e79a9fc83d299cb48d336 100755 (executable)
@@ -203,7 +203,7 @@ function template_create {
       svn mkdir $TEMPLATE_BASE.s
       info_commit="yes"
     else
-      mkdir -p $TEMPLATE_BASE.d
+      mkdir -p $TEMPLATE_BASE.s
     fi
 
     if ! svn_check $TEMPLATE_BASE.template; then
@@ -217,9 +217,11 @@ function template_create {
     fi
 
   elif use_svn && [ -d "$BASE_CONF/templates/.svn" ]; then
+
     cd $BASE_CONF/templates
     svn add `basename $TEMPLATE_BASE`
     info_commit="yes"
+
   else
     mkdir $TEMPLATE_BASE.{d,s}
   fi
@@ -243,8 +245,8 @@ function template_create {
       
     if use_svn && [ -d "$orig_template/.svn" ]; then
       rsync -av --exclude=.svn $orig_template/$ROOT.d/ $TEMPLATE_BASE.d/
-      cd $TEMPLATE_BASE.d
-      svn add *
+      cd `dirname $TEMPLATE_BASE`
+      svn add `basename $TEMPLATE_BASE`
       info_commit="yes"
     else
       rsync -av $orig_template/$ROOT.d/ $TEMPLATE_BASE.d/