]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
templatepkg: fixed --sync behaviour
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Wed, 4 Apr 2007 15:33:30 +0000 (15:33 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Wed, 4 Apr 2007 15:33:30 +0000 (15:33 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@230 04377dda-e619-0410-9926-eae83683ac58

trunk/src/templatepkg

index 1bf3a99e5370d66161adb6d13ee829794d97489b..e6050119cb53d5edf73a472c5ef6ff0dc4937943 100755 (executable)
@@ -54,7 +54,7 @@ function usage {
   echo ""
   echo "  -s | --sync: sync $BASE_CONF/templates working copy; arguments are:"
   echo ""
-  echo "      $BASENAME -d <template>"
+  echo "      $BASENAME -s"
   echo ""   
   echo "  -e | --export: export $BASE_CONF/templates to a svn repository; arguments are:"
   echo ""   
@@ -415,11 +415,9 @@ elif [ "$1" == "-d" ] || [ "$1" == "--delete" ]; then
 
 elif [ "$1" == "-s" ] || [ "$1" == "--sync" ]; then
 
-  if use_svn; then
-    if [ -d "$TEMPLATE_BASE.d/.svn" ]; then
-      ( cd $TEMPLATE_BASE.d && svn update )
-      true
-    fi
+  if use_svn && [ -d "$BASE_CONF/templates/.svn" ]; then
+    ( cd $BASE_CONF/templates && svn update )
+    true
   fi
 
 elif [ "$1" == "-e" ] || [ "$1" == "--export" ]; then