check_logfiles: 3.7.5.1
[omd.git] / packages / nagvis / update-nagvis
blob52a1ece175d0d1e941a62cb3d2bfe9d1bc806583
1 #!/bin/bash
3 V=${1-stable}
5 if [ "$V" = "nightly" ]; then
6 VERSION=1.9-nightly
7 echo "Adding current nightly build..."
8 git rm nagvis-*.tar.gz
9 wget -O nagvis-$VERSION.tar.gz http://www.nagvis.org/share/nagvis-$VERSION.tar.gz
10 else
11 VERSION=$(wget -O - http://www.nagvis.org/${V}_release.php 2>/dev/null)
12 [ -z "$VERSION" ] && echo "ERROR: Got no version." && exit 1
13 git rm nagvis-*.tar.gz
14 echo "Adding current VERSION ($VERSION)..."
15 wget -O nagvis-${VERSION}.tar.gz http://nagvis.org/share/nagvis-${VERSION}.tar.gz
18 git add nagvis-$VERSION.tar.gz
19 sed -i "s/^VERSION = .*$/VERSION = $VERSION/g" Makefile
20 exit 0