From 110c975154feee845039bcb9bfa4bca565362829 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 25 Jun 2013 18:29:07 +0200 Subject: [PATCH] Script to update the latest/ directory (#925) --- update_latest.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 update_latest.sh diff --git a/update_latest.sh b/update_latest.sh new file mode 100755 index 000000000..66a3e9999 --- /dev/null +++ b/update_latest.sh @@ -0,0 +1,9 @@ +#/bins/sh +set -e + +version="$1" + +ln -sf ../downloads/$version latest/directory +for f in $(ls "downloads/$version/"); do \ + ln -sf "../downloads/$version/$f" latest/$(echo $f | sed -e "s@-$version@@") +done