diff options
Diffstat (limited to 'trunk/src/templatepkg')
-rwxr-xr-x | trunk/src/templatepkg | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/trunk/src/templatepkg b/trunk/src/templatepkg index c30bcdd..5d10d36 100755 --- a/trunk/src/templatepkg +++ b/trunk/src/templatepkg @@ -148,10 +148,12 @@ function template_update { pack=`package_name $package` if [ -f $TEMPLATE ]; then if ! `grep -v -e "^#" $TEMPLATE | cut -d : -f 1 | grep -q -e "^$pack\$"`; then - package_name $package >> $TEMPLATE + echo $pack >> $TEMPLATE + echo Added $pack on $TEMPLATE fi else - package_name $package >> $TEMPLATE + echo $pack >> $TEMPLATE + echo Added $pack on $TEMPLATE fi done @@ -172,6 +174,7 @@ function template_update { sed "/^$pack$/d" $TEMPLATE | sed "/^$pack $/d" | sed "/^$pack:*/d" > $TEMPLATE.tmp cat $TEMPLATE.tmp > $TEMPLATE rm -f $TEMPLATE.tmp + echo Removed $pack from $TEMPLATE fi fi @@ -208,6 +211,8 @@ function template_add { if use_svn; then ( cd $TEMPLATE_BASE.d && svn add $candidate ) info_commit="yes" + else + echo Added $jail/$candidate on $TEMPLATE_BASE.d/$candidate fi fi done @@ -231,6 +236,8 @@ function template_add { ( cd $TEMPLATE_BASE.d && svn add $file ) echo $BASENAME: please run jail-commit to add $file into the svn repository true + else + echo Added $jail/$file on $destination fi else @@ -296,6 +303,7 @@ elif [ "$1" == "-d" ] || [ "$1" == "--delete" ]; then echo $BASENAME: please run jail-commit to del $3 in the svn repository else rm -rf $TEMPLATE_BASE.d/$3 + echo Removed $3 from $TEMPLATE_BASE.d fi fi |