diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2005-11-18 12:56:08 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2005-11-18 12:56:08 +0000 |
commit | 2af811c0a63855561b420d245e634b28de215b3e (patch) | |
tree | 8373177209ee486de4538b133e1a7feff56f50be /tools | |
parent | 9d9834647c7d704017bb8e27aefee7b081aa0bb1 (diff) | |
download | monitoring-plugins-2af811c0a63855561b420d245e634b28de215b3e.tar.gz |
Create a permanent link to HEAD snapshot
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1288 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/sfsnapshot | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/sfsnapshot b/tools/sfsnapshot index c9c56bd6..1a8a02fe 100755 --- a/tools/sfsnapshot +++ b/tools/sfsnapshot @@ -80,15 +80,22 @@ done 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 |