foxgirl-linux/binary_tarball/scripts/2_Download_Source_Code.sh

16 lines
630 B
Bash
Raw Normal View History

2020-03-07 19:44:22 +01:00
#!/bin/bash
2019-07-21 07:30:19 +02:00
printf "\n\n--------------------------------- SOURCE CODE DOWNLOAD --------------------------------------\n";
2019-07-21 07:30:19 +02:00
# Setup Script Variables
SOURCE_FOLDER=$1;
# hardcoded vor now, we'll parse the _pkgver later on, probably from tags
pkgver="73.0.1"
_SOURCE_CODE_URL="https://archive.mozilla.org/pub/firefox/releases/$pkgver/source/firefox-$pkgver.source.tar.xz";
_SOURCE_TAR="firefox-${pkgver}.tar.xz"
# Downloading and Extracting Firefox Source Code
printf "\nDownloading Firefox Source Code\n";
wget -O $_SOURCE_TAR $_SOURCE_CODE_URL
mkdir -p $SOURCE_FOLDER
tar -x --strip-components=1 -C $SOURCE_FOLDER -f $_SOURCE_TAR