aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtrunk/src/templatepkg11
1 files changed, 10 insertions, 1 deletions
diff --git a/trunk/src/templatepkg b/trunk/src/templatepkg
index d1bffb6..4872621 100755
--- a/trunk/src/templatepkg
+++ b/trunk/src/templatepkg
@@ -471,7 +471,8 @@ function check_template_exist {
for component in $components; do
if [ ! -e "$TEMPLATE_BASE.$component" ]; then
- echo "$BASENAME: template component not found: $component; creating..."
+
+ echo "$BASENAME: template component not found: $TEMPLATE_BASE.$component; creating..."
cd `dirname $TEMPLATE_BASE`
@@ -486,7 +487,15 @@ function check_template_exist {
info_commit="yes"
fi
+ elif use_svn && [ -d "$TEMPLATE_BASE/.svn" ] && \
+ ! svn_check $TEMPLATE_BASE.$component; then
+
+ cd `dirname $TEMPLATE_BASE`
+ svn add $TEMPLATE_BASE.$component
+ info_commit="yes"
+
fi
+
done
if [ "$info_commit" == "yes" ]; then