aboutsummaryrefslogtreecommitdiffstats
path: root/testing/flightgear/flightgear-data-downloader.sh
blob: 14023b0094855af465a72e9b380c3d5372482ac3 (plain) (blame)
1
2
3
4
5
6
7
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.'