summaryrefslogtreecommitdiffstats
path: root/tools/snapshot
diff options
context:
space:
mode:
authordermoth <dermoth@nagiosplugins.org>2012-11-03 22:01:37 +0000
committerdermoth <dermoth@nagiosplugins.org>2012-11-03 22:04:53 +0000
commitd51f87cc797cdc34249878e49d19bb2c5a44d0e5 (patch)
treefbdae1b2e88fc6a4740fb0cfdc6677766a120317 /tools/snapshot
parent42a7b3d6d6392a4f1a26090a8dc6de9ae93720f1 (diff)
downloadmonitoring-plugins-d51f87cc797cdc34249878e49d19bb2c5a44d0e5.tar.gz
Update tools
- fix sfwebcron (tool updating sf developer guidelines) - remove obsolete snapshot script
Diffstat (limited to 'tools/snapshot')
-rwxr-xr-xtools/snapshot69
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 @@
1#! /bin/sh
2
3# This scipt assumes that you have anonCVS for nagios and nagiosplug
4# in ${IN}
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
12# Set directories
13IN=${HOME}/sf
14OUT=/col/htdocs/src/nagios
15RPM_TOPDIR=${HOME}/redhat
16
17# Update nagiosplug CVS
18cd ${IN}/nagiosplug
19rm configure configure.in Makefile.in
20cvs update
21DS=`date -u +%Y%m%d%H%M`
22sed "s/^VER=.*/VER=${DS}/;s/^REL=.*/REL=snapshot/" configure.in > configure.tmp
23mv configure.tmp configure.in
24aclocal
25autoheader
26autoconf
27automake
28autoreconf
29
30# Make the Nagiosplug dist tarball
31rm -r build-dist
32mkdir build-dist
33cd build-dist
34../configure
35make dist
36cp -fv *.gz ${OUT}
37
38# Make the Nagiosplug custom RPM
39echo "%_topdir ${RPM_TOPDIR}" > ./.rpmrc
40mkdir -p ${RPM_TOPDIR}/RPMS/i386 ${RPM_TOPDIR}/SRPMS ${RPM_TOPDIR}/SOURCES ${RPM_TOPDIR}/BUILD ${RPM_TOPDIR}/SPECS
41rpm --rcfile "/usr/lib/rpm/rpmrc:${IN}/rpmrc" --define 'custom 1' -ta *.gz
42cp -fv ~/redhat/RPMS/i386/nagios-plugins-custom-*.i386.rpm /col/htdocs/src/nagios
43
44# Copy the new snapshot and delete the old ones
45cd ${OUT}
46GLOBIGNORE=nagios-plugins-${DS}-snapshot.tar.gz
47rm -f nagios-plugins-*.tar.gz
48GLOBIGNORE=nagios-plugins-custom-${DS}-snapshot.i386.rpm
49rm -f nagios-plugins-custom-*-snapshot.i386.rpm
50cd ~/redhat/SRPMS
51rm nagios-plugins-custom-${DS}-snapshot.src.rpm
52cd ~/redhat/RPMS/i386
53rm nagios-plugins-custom-${DS}-snapshot.i386.rpm
54
55# Update Nagios CVS
56cd ${IN}/sf/nagios
57rm configure configure.in nagios.spec base/nagios.c common/common.h \
58 html/main.html Makefile.in
59cvs update
60
61# Make the Nagios tarball
62DS=`date -u +%Y%m%d%H%M`
63./make-tarball ${DS}
64
65# Copy the new snapshot and delete the old ones
66mv ../nagios-${DS}.tar.gz /col/htdocs/src/nagios/
67GLOBIGNORE=${OUT}/nagios-${DS}.tar.gz
68rm ${OUT}/nagios-20*.tar.gz
69