aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/templatepkg
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-04 15:33:30 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-04 15:33:30 +0000
commit74e629cae100b0717e0482d8dece9e6675620c3e (patch)
tree7dad1b6c76b713de7f59054315e7dfe58d3fdc8f /trunk/src/templatepkg
parentb93c7fe0a6fcde1c3477351471e24cdfc5b5c9c1 (diff)
downloadsimplepkg-74e629cae100b0717e0482d8dece9e6675620c3e.tar.gz
simplepkg-74e629cae100b0717e0482d8dece9e6675620c3e.tar.bz2
templatepkg: fixed --sync behaviour
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@230 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/src/templatepkg')
-rwxr-xr-xtrunk/src/templatepkg10
1 files changed, 4 insertions, 6 deletions
diff --git a/trunk/src/templatepkg b/trunk/src/templatepkg
index 1bf3a99..e605011 100755
--- a/trunk/src/templatepkg
+++ b/trunk/src/templatepkg
@@ -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