]> git.pld-linux.org Git - projects/nagios-config.git/commitdiff
- script to make snapshot tarball
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 14 May 2005 12:51:46 +0000 (12:51 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Sat, 14 May 2005 12:51:46 +0000 (12:51 +0000)
svn-id: @5965

package.sh [new file with mode: 0755]

diff --git a/package.sh b/package.sh
new file mode 100755 (executable)
index 0000000..c22a49d
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+PN=nagios-config
+PV=$(date +%Y%m%d)
+
+files="
+checkcommands.cfg contactgroups.cfg contacts.cfg dependencies.cfg
+escalations.cfg hostextinfo.cfg hostgroups.cfg hosts.cfg misccommands.cfg
+serviceextinfo.cfg services.cfg timeperiods.cfg
+"
+
+s=0
+pkg=$PN-$PV
+while [ -f $pkg.tar.bz2 ]; do
+       s=$((s + 1))
+       pkg=$PN-$PV.$s
+done
+
+mkdir -p $pkg
+cp -a $files $pkg
+tar cjf $pkg.tar.bz2 --remove-files $pkg
+rmdir $pkg
+
+echo "Created: $pkg.tar.bz2"
This page took 0.158143 seconds and 4 git commands to generate.