[Nagiosplug-checkins] nagiosplug/tools sfsnapshot,1.16,1.17

Ton Voon tonvoon at users.sourceforge.net
Fri Nov 18 04:57:01 CET 2005


Update of /cvsroot/nagiosplug/nagiosplug/tools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25115

Modified Files:
	sfsnapshot 
Log Message:
Create a permanent link to HEAD snapshot


Index: sfsnapshot
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/tools/sfsnapshot,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- sfsnapshot	24 Nov 2004 21:34:56 -0000	1.16
+++ sfsnapshot	18 Nov 2005 12:56:08 -0000	1.17
@@ -80,15 +80,22 @@
 set -x
 files=$(ls $IN/*.gz 2>/dev/null)
 [[ -z $files ]] && die "No files created"
+head_file=$(cd $IN && ls *HEAD*.gz 2>/dev/null)
 ssh -2 $OUT_SERVER "rm -f $OUT/*.gz"
 scp -2 $files $OUT_SERVER:$OUT
+if [[ -n $head_file ]] ; then
+	ssh -2 $OUT_SERVER "cd $OUT && ln -s $head_file nagios-plugins-HEAD.tar.gz"
+fi
 
 # Create MD5 sum
 ssh -2 $OUT_SERVER << EOF
 cd $OUT
 cat <<-END_README > README
 This is the daily CVS snapshot of nagiosplug, consisting of the CVS HEAD
-and any other branches
+and any other branches.
+
+The nagios-plugins-HEAD.tar.gz link will always go to the latest HEAD snapshot.
+
 The MD5SUM is:
 END_README
 md5sum *.gz | tee -a README > MD5SUM





More information about the Commits mailing list