4 # This script deletes a delivery tag
11 # Environment variable that MUST be defined
12 # by the calling script
14 # SVN_URL SVN_USER SVN_PASS
19 . `dirname $0`/functions
25 BIN_SVN="/usr/bin/svn"
41 if [ $EXIT -eq 0 ] ; then
44 $BIN_ECHO "-> SVN delivery parameter is missing"
50 $BIN_ECHO "-> SVN version parameter is missing"
56 if [ $EXIT -eq 0 ] ; then
57 $BIN_SVN delete --username $SVN_USER --password $SVN_PASS -m "Delete tag $SVN_VERSION of delivery $SVN_DELIVERY" $SVN_URL/tags/delivery/$SVN_DELIVERY/$SVN_VERSION >> /dev/null 2>&1
58 if [ $? -ne 0 ] ; then
59 $BIN_ECHO "-> Error while deleting tag '$SVN_URL/tags/delivery/$SVN_DELIVERY/$SVN_VERSION'"