diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-11-24 13:43:05 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-11-24 13:43:05 +0000 |
commit | f38d8b1f05a9cb68b516da52549efa04f96b476e (patch) | |
tree | ad4d8ee302802ea07783073612bfdd0c18b1387d /tools/snapshot | |
parent | 8f8e21ba6cef71730dbec0c10ac229895cfd498a (diff) | |
download | monitoring-plugins-f38d8b1f05a9cb68b516da52549efa04f96b476e.tar.gz |
some fixes needed to move off old devel box
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@227 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'tools/snapshot')
-rwxr-xr-x | tools/snapshot | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/snapshot b/tools/snapshot index beeb4a8b..9fa61cfe 100755 --- a/tools/snapshot +++ b/tools/snapshot | |||
@@ -3,6 +3,12 @@ | |||
3 | # This scipt assumes that you have anonCVS for nagios and nagiosplug | 3 | # This scipt assumes that you have anonCVS for nagios and nagiosplug |
4 | # in ${IN} | 4 | # in ${IN} |
5 | 5 | ||
6 | # cvs -d:pserver:anonymous@cvs.nagiosplug.sourceforge.net:/cvsroot/nagiosplug login | ||
7 | # cvs -z3 -d:pserver:anonymous@cvs.nagiosplug.sourceforge.net:/cvsroot/nagiosplug co nagiosplug | ||
8 | # | ||
9 | # cvs -d:pserver:anonymous@cvs.nagios.sourceforge.net:/cvsroot/nagios login | ||
10 | # cvs -z3 -d:pserver:anonymous@cvs.nagios.sourceforge.net:/cvsroot/nagios co nagios | ||
11 | |||
6 | # Set directories | 12 | # Set directories |
7 | IN=${HOME}/sf | 13 | IN=${HOME}/sf |
8 | OUT=/col/htdocs/src/nagios | 14 | OUT=/col/htdocs/src/nagios |
@@ -31,8 +37,8 @@ cp -fv *.gz ${OUT} | |||
31 | 37 | ||
32 | # Make the Nagiosplug custom RPM | 38 | # Make the Nagiosplug custom RPM |
33 | echo "%_topdir ${RPM_TOPDIR}" > ./.rpmrc | 39 | echo "%_topdir ${RPM_TOPDIR}" > ./.rpmrc |
34 | rpm --rcfile "/usr/lib/rpm/rpmrc:/etc/rpmrc:~/.rpmrc:./.rpmrc" \ | 40 | mkdir -p ${RPM_TOPDIR}/RPMS/i386 ${RPM_TOPDIR}/SRPMS ${RPM_TOPDIR}/SOURCES ${RPM_TOPDIR}/BUILD ${RPM_TOPDIR}/SPECS |
35 | --define 'custom 1' -ta *.gz | 41 | rpm --rcfile "/usr/lib/rpm/rpmrc:${IN}/rpmrc" --define 'custom 1' -ta *.gz |
36 | cp -fv ~/redhat/RPMS/i386/nagios-plugins-custom-*.i386.rpm /col/htdocs/src/nagios | 42 | cp -fv ~/redhat/RPMS/i386/nagios-plugins-custom-*.i386.rpm /col/htdocs/src/nagios |
37 | 43 | ||
38 | # Copy the new snapshot and delete the old ones | 44 | # Copy the new snapshot and delete the old ones |