diff options
author | dermoth <dermoth@nagiosplugins.org> | 2012-11-03 22:01:37 +0000 |
---|---|---|
committer | dermoth <dermoth@nagiosplugins.org> | 2012-11-03 22:04:53 +0000 |
commit | d51f87cc797cdc34249878e49d19bb2c5a44d0e5 (patch) | |
tree | fbdae1b2e88fc6a4740fb0cfdc6677766a120317 /tools/snapshot | |
parent | 42a7b3d6d6392a4f1a26090a8dc6de9ae93720f1 (diff) | |
download | monitoring-plugins-d51f87cc797cdc34249878e49d19bb2c5a44d0e5.tar.gz |
Update tools
- fix sfwebcron (tool updating sf developer guidelines)
- remove obsolete snapshot script
Diffstat (limited to 'tools/snapshot')
-rwxr-xr-x | tools/snapshot | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/tools/snapshot b/tools/snapshot deleted file mode 100755 index 9fa61cfe..00000000 --- a/tools/snapshot +++ /dev/null @@ -1,69 +0,0 @@ -#! /bin/sh - -# This scipt assumes that you have anonCVS for nagios and nagiosplug -# in ${IN} - -# cvs -d:pserver:anonymous@cvs.nagiosplug.sourceforge.net:/cvsroot/nagiosplug login -# cvs -z3 -d:pserver:anonymous@cvs.nagiosplug.sourceforge.net:/cvsroot/nagiosplug co nagiosplug -# -# cvs -d:pserver:anonymous@cvs.nagios.sourceforge.net:/cvsroot/nagios login -# cvs -z3 -d:pserver:anonymous@cvs.nagios.sourceforge.net:/cvsroot/nagios co nagios - -# Set directories -IN=${HOME}/sf -OUT=/col/htdocs/src/nagios -RPM_TOPDIR=${HOME}/redhat - -# Update nagiosplug CVS -cd ${IN}/nagiosplug -rm configure configure.in Makefile.in -cvs update -DS=`date -u +%Y%m%d%H%M` -sed "s/^VER=.*/VER=${DS}/;s/^REL=.*/REL=snapshot/" configure.in > configure.tmp -mv configure.tmp configure.in -aclocal -autoheader -autoconf -automake -autoreconf - -# Make the Nagiosplug dist tarball -rm -r build-dist -mkdir build-dist -cd build-dist -../configure -make dist -cp -fv *.gz ${OUT} - -# Make the Nagiosplug custom RPM -echo "%_topdir ${RPM_TOPDIR}" > ./.rpmrc -mkdir -p ${RPM_TOPDIR}/RPMS/i386 ${RPM_TOPDIR}/SRPMS ${RPM_TOPDIR}/SOURCES ${RPM_TOPDIR}/BUILD ${RPM_TOPDIR}/SPECS -rpm --rcfile "/usr/lib/rpm/rpmrc:${IN}/rpmrc" --define 'custom 1' -ta *.gz -cp -fv ~/redhat/RPMS/i386/nagios-plugins-custom-*.i386.rpm /col/htdocs/src/nagios - -# Copy the new snapshot and delete the old ones -cd ${OUT} -GLOBIGNORE=nagios-plugins-${DS}-snapshot.tar.gz -rm -f nagios-plugins-*.tar.gz -GLOBIGNORE=nagios-plugins-custom-${DS}-snapshot.i386.rpm -rm -f nagios-plugins-custom-*-snapshot.i386.rpm -cd ~/redhat/SRPMS -rm nagios-plugins-custom-${DS}-snapshot.src.rpm -cd ~/redhat/RPMS/i386 -rm nagios-plugins-custom-${DS}-snapshot.i386.rpm - -# Update Nagios CVS -cd ${IN}/sf/nagios -rm configure configure.in nagios.spec base/nagios.c common/common.h \ - html/main.html Makefile.in -cvs update - -# Make the Nagios tarball -DS=`date -u +%Y%m%d%H%M` -./make-tarball ${DS} - -# Copy the new snapshot and delete the old ones -mv ../nagios-${DS}.tar.gz /col/htdocs/src/nagios/ -GLOBIGNORE=${OUT}/nagios-${DS}.tar.gz -rm ${OUT}/nagios-20*.tar.gz - |