# usage: template_svn_commit <template-folder>
if use_svn && [ -d "$1/.svn" ]; then
+ echo Commiting changes to the repository...
cd $1
svn commit -m "changes for `date`"
if [ "$?" != "0" ]; then
if [ -d "$TEMPLATE_BASE.d" ] || [ -a "$TEMPLATE_BASE.template" ]; then
templatepkg -u $template $jailpath
template_merge $jailpath
- template_svn_commit `dirname $TEMPLATE_BASE`
fi
fi
elif [ ! -z "$1" ]; then
echo "This is jail-commit; Run \"$BASENAME --help\" for help"
do_commit $1 $2
+ template_svn_commit `dirname $TEMPLATE_BASE`
else
echo "This is jail-commit; Run \"$BASENAME --help\" for help"
if [ -f $JAIL_LIST ]; then
fi
# main jail
do_commit / main
+ template_svn_commit $BASE_CONF/templates
fi
# delete a file from a template
# usage: template_delete <file>
- if [ -a "$TEMPLATE_BASE.d/$1" ]; then
+ if [ -e "$TEMPLATE_BASE.d/$1" ]; then
if use_svn && [ -d "$TEMPLATE_BASE.d/.svn" ]; then
cd $TEMPLATE_BASE.d
svn del --force ./$1 || rm -rf ./$1