From ff50baf6dead1fa1e095ba7b8c3041c29a588172 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Tue, 24 Jul 2007 00:35:16 +0000 Subject: Updated to use svn instead of cvs git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1760 f882894a-f735-0410-b71e-b25c423dba1c --- tools/sfsnapshot | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'tools/sfsnapshot') diff --git a/tools/sfsnapshot b/tools/sfsnapshot index 46f34a3d..efc5f013 100755 --- a/tools/sfsnapshot +++ b/tools/sfsnapshot @@ -12,26 +12,27 @@ function die { echo $1; exit 1; } -# This makes the distribution. Expects $1 as CVS tag, otherwise uses HEAD +# This makes the distribution. Expects $1 as branches/name, otherwise uses trunk function make_dist { if [[ -n $1 ]] ; then - cvs_rel=$1 - v="$1-" + svn_url_suffix=$1 + name=${1##*/} else - cvs_rel="HEAD" - v="HEAD-" + svn_url_suffix="trunk" + name="trunk" fi + v="$name-" # Get compile server to do the work # Variables will be expanded locally before being run on $CF ssh $CF </dev/null) [[ -z $files ]] && die "No files created" -head_file=$(cd $IN && ls *HEAD*.gz 2>/dev/null) +head_file=$(cd $IN && ls *-trunk-*.gz 2>/dev/null) ssh -2 $OUT_SERVER "rm -f $OUT/*.gz" scp -2 $files $OUT_SERVER:$OUT if [[ -n $head_file ]] ; then @@ -91,10 +92,11 @@ fi ssh -2 $OUT_SERVER << EOF cd $OUT cat <<-END_README > README -This is the daily CVS snapshot of nagiosplug, consisting of the CVS HEAD +This is the daily SVN snapshot of nagiosplug, consisting of the SVN trunk and any other branches. -The nagios-plugins-HEAD.tar.gz link will always go to the latest HEAD snapshot. +The nagios-plugins-HEAD.tar.gz link will always go to the latest trunk snapshot +(name kept for existing tinderbox scripts to link correctly). The MD5SUM is: END_README -- cgit v1.2.3-74-g34f1