4 # This script creates a packaging tag
10 # Environment variable that MUST be defined
11 # by the calling script
13 # SVN_URL SVN_USER SVN_PASS
18 . `dirname $0`/functions
24 BIN_SVN="/usr/bin/svn"
39 if [ $EXIT -eq 0 ] ; then
42 $BIN_ECHO "-> SVN version parameter is missing"
48 if [ $EXIT -eq 0 ] ; then
49 $BIN_SVN list --username $SVN_USER --password $SVN_PASS $SVN_URL/tags/packaging/$SVN_VERSION >> /dev/null 2>&1
50 if [ $? -eq 0 ] ; then
51 $BIN_ECHO "-> Directory '$SVN_URL/tags/packaging/$SVN_VERSION' already exists"
55 if [ $EXIT -eq 0 ] ; then
56 $BIN_SVN copy --username $SVN_USER --password $SVN_PASS -m "Create tag $SVN_VERSION of packaging" $SVN_URL/trunk/packaging $SVN_URL/tags/packaging/$SVN_VERSION >> /dev/null 2>&1
57 if [ $? -ne 0 ] ; then
58 $BIN_ECHO "-> Error while creating tag '$SVN_URL/tags/packaging/$SVN_VERSION' from '$SVN_URL/trunk/packaging'"