Revision: 1760
http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=1760&view=rev
Author: tonvoon
Date: 2007-07-23 17:35:16 -0700 (Mon, 23 Jul 2007)
Log Message:
-----------
Updated to use svn instead of cvs
Modified Paths:
--------------
nagiosplug/trunk/tools/sfsnapshot
nagiosplug/trunk/tools/sfwebcron
Modified: nagiosplug/trunk/tools/sfsnapshot
===================================================================
--- nagiosplug/trunk/tools/sfsnapshot 2007-07-21 16:29:01 UTC (rev 1759)
+++ nagiosplug/trunk/tools/sfsnapshot 2007-07-24 00:35:16 UTC (rev 1760)
@@ -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 <<EOF
set -x
PATH=$PATH:/usr/local/bin
- [[ ! -d $COMPILE_DIR/$cvs_rel ]] && mkdir -p $COMPILE_DIR/$cvs_rel
- cd $COMPILE_DIR/$cvs_rel
+ [[ ! -d $COMPILE_DIR/$name ]] && mkdir -p $COMPILE_DIR/$name
+ cd $COMPILE_DIR/$name
# Cannot use cvs export due to conflicts on second run - think this is better for cvs server
- CVS_RSH=ssh cvs -z3 -d:ext:[email protected]:/cvsroot/nagiosplug co -r $cvs_rel nagiosplug
+ svn export https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/$svn_url_suffix $PROJECT
cd $PROJECT
@@ -60,11 +61,11 @@
IN=${HOME}/tmp_snapshot
# Where to place the generated files
-OUT_SERVER="shell.sf.net"
+OUT_SERVER="[email protected]"
OUT="/home/groups/n/na/nagiosplug/htdocs/snapshot"
# Make sure prereqs are satisfied on server!
-CF="x86-linux2"
+CF="localhost"
DS=`date -u +%Y%m%d%H%M`
# Setup home directory area
@@ -80,7 +81,7 @@
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)
+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 @@
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
Modified: nagiosplug/trunk/tools/sfwebcron
===================================================================
--- nagiosplug/trunk/tools/sfwebcron 2007-07-21 16:29:01 UTC (rev 1759)
+++ nagiosplug/trunk/tools/sfwebcron 2007-07-24 00:35:16 UTC (rev 1760)
@@ -11,19 +11,25 @@
# Set working variables
PROJECT=nagiosplug
IN=${HOME}/tmp_sfwebcron
+OUT_SERVER="[email protected]"
OUT="/home/groups/n/na/nagiosplug/htdocs"
+if [[ ! -e developer-guidelines.html.last ]] ; then
+ touch developer-guidelines.html.last
+fi
+
# Get latest dev guildelines
[[ ! -d $IN ]] && mkdir $IN
cd $IN
-if [[ ! -d $PROJECT ]] ; then
- cvs -z3 -d:pserver:anonymous@cvs1:/cvsroot/nagiosplug co nagiosplug || die "Cannot cvs"
+if [[ ! -d doc ]] ; then
+ #cvs -z3 -d:pserver:anonymous@cvs1:/cvsroot/nagiosplug co nagiosplug || die "Cannot cvs"
+ svn checkout http://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk/doc doc
fi
-cd nagiosplug/doc
-cvs update
+cd doc
+svn update
-# Is the dev guidelines updated?
make
-if [[ developer-guidelines.html -nt $OUT/developer-guidelines.html ]] ; then
- cp developer-guidelines.html developer-guidelines.sgml $OUT
+if [[ developer-guidelines.html -nt developer-guidelines.html.last ]] ; then
+ scp developer-guidelines.{html,sgml} $OUT_SERVER:$OUT
+ touch developer-guidelines.html.last
fi
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.