2024-01-05 22:19:07 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# gil
|
|
|
|
FIREFOX_VERSION=$1
|
|
|
|
|
|
|
|
if [ -z "$FIREFOX_VERSION" ]; then
|
|
|
|
echo "Usage: $0 <version>"
|
|
|
|
exit 2
|
|
|
|
fi
|
|
|
|
|
2024-01-05 22:19:08 +01:00
|
|
|
[ -e firefox-$FIREFOX_VERSION-langpacks.tar.bz2 ] && exit 0
|
|
|
|
|
2024-01-05 22:19:07 +01:00
|
|
|
rm -rf firefox-$FIREFOX_VERSION
|
|
|
|
mkdir firefox-$FIREFOX_VERSION
|
|
|
|
cd firefox-$FIREFOX_VERSION
|
2024-01-05 22:19:08 +01:00
|
|
|
wget -r -N -l 1 -np -nd -A "*.xpi" https://ftp.mozilla.org/pub/firefox/releases/$FIREFOX_VERSION/linux-i686/xpi/
|
2024-01-05 22:19:07 +01:00
|
|
|
rm -f robots.txt
|
|
|
|
tar -cj *.xpi > ../firefox-$FIREFOX_VERSION-langpacks.tar.bz2
|
|
|
|
#rm -rf firefox-$FIREFOX_VERSION
|