aboutsummaryrefslogtreecommitdiff
path: root/development/vif/getsrc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'development/vif/getsrc.sh')
-rw-r--r--development/vif/getsrc.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/development/vif/getsrc.sh b/development/vif/getsrc.sh
new file mode 100644
index 0000000000..957a91f212
--- /dev/null
+++ b/development/vif/getsrc.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# the upstream URL's filename never changes, but the contents
+# of the tarball do, including the top-level dir.
+
+rm -f vif-current.tar.gz
+wget https://jmvdveer.home.xs4all.nl/vif-current.tar.gz
+VERSION="$( tar tf vif-current.tar.gz | head -1 | cut -d- -f2 | cut -d/ -f1 )"
+mv vif-current.tar.gz vif-$VERSION.tar.gz
+echo "$VERSION"
+echo "vif-$VERSION.tar.gz"