if [ "$mode" == "export" ]; then
preposition="to"
- svn import templates $repository
+ svn import templates $repository -m "initial import"
if [ "$?" != "0" ]; then
echo $BASENAME: export failed
exit 1
mkdir -p $TEMPLATE_BASE.d/`dirname $candidate`
cp -a $jail/$candidate $TEMPLATE_BASE.d/$candidate
if use_svn; then
- ( cd $TEMPLATE_BASE.d && svn add $candidate )
+ ( cd $TEMPLATE_BASE.d && svn add ./$candidate )
info_commit="yes"
else
echo Added $jail/$candidate on $TEMPLATE_BASE.d/$candidate
else
echo $BASENAME: file $file already on $TEMPLATE_BASE.d
- exti 1
+ exit 1
fi
else
if [ -a "$jail/$file" ]; then
destination="`echo $TEMPLATE_BASE.d/$file | sed -e 's/\/$//'`"
cp -a $jail/$file $destination
if use_svn; then
- ( cd $TEMPLATE_BASE.d && svn add $file )
+ ( cd $TEMPLATE_BASE.d && svn add ./$file )
echo $BASENAME: please run jail-commit to add $file into the svn repository
true
else