summaryrefslogtreecommitdiffhomepage
path: root/update_latest.sh
blob: 0144c7c44d1844c9a3a786db768d0cc6ebe80f1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#/bins/sh
set -e

version="$1"

if [ -z "$version" ]; then
	echo "Usage: $0 version"
	exit 1
fi

cd "$(dirname $(readlink -f $0))"

echo -n "$version" > latest_version
ln -sf downloads/latest downloads/$1