summaryrefslogtreecommitdiffstats
path: root/tools/sfsnapshot
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2004-11-24 21:34:56 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2004-11-24 21:34:56 (GMT)
commit2acbb0a6e7fc9d33ab4d3fd0cb8bf7cffb56298b (patch)
treecea160f56149e36c38646c2712fa0c25598f4057 /tools/sfsnapshot
parentc5601df62fb394568b3bfd1655c442a9d45dd6df (diff)
downloadmonitoring-plugins-2acbb0a6e7fc9d33ab4d3fd0cb8bf7cffb56298b.tar.gz
Removing build directory after creating distribution
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@936 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'tools/sfsnapshot')
-rwxr-xr-xtools/sfsnapshot12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/sfsnapshot b/tools/sfsnapshot
index a383760..c9c56bd 100755
--- a/tools/sfsnapshot
+++ b/tools/sfsnapshot
@@ -26,7 +26,7 @@ function make_dist {
26 # Variables will be expanded locally before being run on $CF 26 # Variables will be expanded locally before being run on $CF
27 ssh $CF <<EOF 27 ssh $CF <<EOF
28 set -x 28 set -x
29 PATH=$PATH 29 PATH=$PATH:/usr/local/bin
30 [[ ! -d $COMPILE_DIR/$cvs_rel ]] && mkdir -p $COMPILE_DIR/$cvs_rel 30 [[ ! -d $COMPILE_DIR/$cvs_rel ]] && mkdir -p $COMPILE_DIR/$cvs_rel
31 cd $COMPILE_DIR/$cvs_rel 31 cd $COMPILE_DIR/$cvs_rel
32 32
@@ -35,7 +35,6 @@ function make_dist {
35 35
36 cd $PROJECT 36 cd $PROJECT
37 37
38 # TODO: Maybe this should only be run when necessary?
39 tools/setup 38 tools/setup
40 39
41 ./configure 40 ./configure
@@ -46,6 +45,7 @@ function make_dist {
46 # May fail if file not generated - do not trap 45 # May fail if file not generated - do not trap
47 mv *.gz $IN 46 mv *.gz $IN
48 47
48 rm -rf $COMPILE_DIR
49 # End ssh 49 # End ssh
50EOF 50EOF
51} 51}
@@ -64,7 +64,7 @@ OUT_SERVER="shell.sf.net"
64OUT="/home/groups/n/na/nagiosplug/htdocs/snapshot" 64OUT="/home/groups/n/na/nagiosplug/htdocs/snapshot"
65 65
66# Make sure prereqs are satisfied on server! 66# Make sure prereqs are satisfied on server!
67CF="x86-solaris1" 67CF="x86-linux2"
68DS=`date -u +%Y%m%d%H%M` 68DS=`date -u +%Y%m%d%H%M`
69 69
70# Setup home directory area 70# Setup home directory area
@@ -80,11 +80,11 @@ done
80set -x 80set -x
81files=$(ls $IN/*.gz 2>/dev/null) 81files=$(ls $IN/*.gz 2>/dev/null)
82[[ -z $files ]] && die "No files created" 82[[ -z $files ]] && die "No files created"
83ssh $OUT_SERVER "rm -f $OUT/*.gz" 83ssh -2 $OUT_SERVER "rm -f $OUT/*.gz"
84scp $files $OUT_SERVER:$OUT 84scp -2 $files $OUT_SERVER:$OUT
85 85
86# Create MD5 sum 86# Create MD5 sum
87ssh $OUT_SERVER << EOF 87ssh -2 $OUT_SERVER << EOF
88cd $OUT 88cd $OUT
89cat <<-END_README > README 89cat <<-END_README > README
90This is the daily CVS snapshot of nagiosplug, consisting of the CVS HEAD 90This is the daily CVS snapshot of nagiosplug, consisting of the CVS HEAD