aboutsummaryrefslogtreecommitdiffstats
path: root/testing/flightgear/flightgear-data-downloader.sh
diff options
context:
space:
mode:
authorThomas Kienlen <kommander@laposte.net>2021-11-12 22:07:16 +0100
committerLeonardo Arena <rnalrd@alpinelinux.org>2021-11-15 07:16:39 +0000
commit0ab53fe0620f9b8ee0e7ee321be3f9b77ff4c913 (patch)
tree596432a6407e68794c829893ee8229121c218d1f /testing/flightgear/flightgear-data-downloader.sh
parent1e3e8503307b7d73c50c853dfc45be8e94ff6b50 (diff)
downloadaports-0ab53fe0620f9b8ee0e7ee321be3f9b77ff4c913.tar.gz
aports-0ab53fe0620f9b8ee0e7ee321be3f9b77ff4c913.tar.bz2
aports-0ab53fe0620f9b8ee0e7ee321be3f9b77ff4c913.tar.xz
testing/flightgear: upgrade to 2021.3.11
Diffstat (limited to 'testing/flightgear/flightgear-data-downloader.sh')
-rwxr-xr-xtesting/flightgear/flightgear-data-downloader.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/flightgear/flightgear-data-downloader.sh b/testing/flightgear/flightgear-data-downloader.sh
new file mode 100755
index 0000000000..14023b0094
--- /dev/null
+++ b/testing/flightgear/flightgear-data-downloader.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+FGDATA_VERSION=2020.3.11
+RELEASE_BRANCH=${FGDATA_VERSION%.*}
+
+echo "Downloading Flightgear data (version $FGDATA_VERSION) ..."
+curl -L https://sourceforge.net/projects/flightgear/files/release-$RELEASE_BRANCH/FlightGear-$FGDATA_VERSION-data.txz/download | tar -xJ --strip-components=1 -C /var/lib/flightgear -f -
+echo 'Done.'