Commit 8b4c4e7f authored by hrchilds's avatar hrchilds

Add new scripts for cutting tags.


git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@2878 18c085ea-50e0-402c-830e-de6fd14e8384
parent 25510655
#!/bin/ksh
#
# Script: finalize_release
#
# Purpose:
# Moves the release candidate branch into the tags directory.
#
# Programmer: Hank Childs
# Creation: January 8, 2008
#
# *****************************************************************************
issueHelp="no"
export CDPATH=""
P=$(whence $0)
P2=${P%/*}
. ${P2}/visit_svn_helper
if [[ $# == 2 ]] ; then
is_version_string $2
if [[ $? != 1 ]] ; then
echo "I do not believe $2 is a valid version string"
issueHelp="yes"
fi
else
issueHelp="yes"
fi
if [[ "$issueHelp" == "yes" ]] ; then
echo ""
echo "Usage: $0 <RC-name> <tag-name>"
echo ""
echo "Example: $0 1.7RC 1.7.1"
echo "\twill move the release candidate branch 1.7RC to the tags directory with label 1.7.1"
echo ""
exit 1
fi
# Move the RC branch to the tags directory.
SRC=${VISIT_SVN_BRANCHES}/${1}
DEST=${VISIT_SVN_TAGS}/${2}
svn_mv_dir $SRC $DEST
return 0
#!/bin/ksh
#
# Script: ls_tags
#
# Purpose:
# Lists the contents of the tags directory.
#
# Programmer: Hank Childs
# Creation: January 9, 2008
#
# *****************************************************************************
P=$(whence $0)
P2=${P%/*}
. ${P2}/visit_svn_helper
svn ls ${VISIT_SVN_TAGS}
return 0
# Script: visit_svn_help
#
# Purpose:
# A common location for SVN routines.
#
# Programmer: Hank Childs
# Creation: May 12, 2007
#
# Modifications:
#
# Hank Childs, Wed Jan 9 08:44:30 PST 2008
# Fix typo, add svn_mv_dir.
#
# *****************************************************************************
##
##
......@@ -192,7 +207,7 @@ function svn_cp_dir
# Confirm presence of $SRC
svn ls $SRC 2>/dev/null > /dev/null
if [[ $? != 0 ]] ; then
echo "Cannot locate release candidate ($SRC) for copying. Aborting!"
echo "Cannot locate directory ($SRC) for copying. Aborting!"
echo "(Try using ls_branches to locate the directory.)"
exit 1
fi
......@@ -215,6 +230,37 @@ function svn_cp_dir
}
function svn_mv_dir
{
SRC=$1
DEST=$2
# Confirm presence of $SRC
svn ls $SRC 2>/dev/null > /dev/null
if [[ $? != 0 ]] ; then
echo "Cannot locate directory ($SRC) for moving. Aborting!"
echo "(Try using ls_branches to locate the directory.)"
exit 1
fi
# Confirm that $DEST does not already exist
svn ls $DEST 2>/dev/null > /dev/null
if [[ $? == 0 ]] ; then
echo "Destination ($DEST) already exists. Aborting!"
exit 1
fi
echo "Creating ${DEST}...."
svn move $SRC $DEST -m "Making copy of $SRC as $DEST"
if [[ $? == 0 ]] ; then
echo "Successful."
else
echo "Not successful."
exit 1
fi
}
function svn_rm_dir
{
DIR=$1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment