aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtrunk/src/templatepkg8
1 files changed, 5 insertions, 3 deletions
diff --git a/trunk/src/templatepkg b/trunk/src/templatepkg
index 88dd4db..e17bb82 100755
--- a/trunk/src/templatepkg
+++ b/trunk/src/templatepkg
@@ -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/