check_oracle_health: update to 1.9.3.5
[omd.git] / packages / nagvis / update-nagvis
blob8d8bb2f822cde79571afecd72121907312c83117
1 #!/bin/bash
3 V=${1-stable}
5 if [ "$V" = "nightly" ]; then
6 VERSION=1.8-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 https://sourceforge.net/projects/nagvis/files/NagVis%20${VERSION::3}/nagvis-$VERSION.tar.gz/download 2>/dev/null
18 git add nagvis-$VERSION.tar.gz
19 sed -i "s/^VERSION = .*$/VERSION = $VERSION/g" Makefile
20 exit 0