]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
templatepkg smal fix
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Wed, 4 Apr 2007 03:10:49 +0000 (03:10 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Wed, 4 Apr 2007 03:10:49 +0000 (03:10 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@218 04377dda-e619-0410-9926-eae83683ac58

trunk/src/templatepkg

index 1495ae2bba5c39d28bcdcca708ada22ea4758777..eb7b56f3981da8603feb523a13c430229392af8b 100755 (executable)
@@ -122,7 +122,7 @@ function import_export_templates {
 
       if [ "$mode" == "export" ]; then
         preposition="to"
-        svn import templates $repository
+        svn import templates $repository -m "initial import"
         if [ "$?" != "0" ]; then
           echo $BASENAME: export failed
           exit 1
@@ -290,7 +290,7 @@ function template_add {
           mkdir -p $TEMPLATE_BASE.d/`dirname $candidate`
           cp -a $jail/$candidate $TEMPLATE_BASE.d/$candidate
           if use_svn; then
-            ( cd $TEMPLATE_BASE.d && svn add $candidate )
+            ( cd $TEMPLATE_BASE.d && svn add ./$candidate )
             info_commit="yes"
           else
             echo Added $jail/$candidate on $TEMPLATE_BASE.d/$candidate
@@ -304,7 +304,7 @@ function template_add {
 
     else
       echo $BASENAME: file $file already on $TEMPLATE_BASE.d
-      exti 1
+      exit 1
     fi
   else
     if [ -a "$jail/$file" ]; then
@@ -313,7 +313,7 @@ function template_add {
       destination="`echo $TEMPLATE_BASE.d/$file | sed -e 's/\/$//'`"
       cp -a $jail/$file $destination
       if use_svn; then
-        ( cd $TEMPLATE_BASE.d && svn add $file )
+        ( cd $TEMPLATE_BASE.d && svn add ./$file )
         echo $BASENAME: please run jail-commit to add $file into the svn repository
         true
       else