17 lines
449 B
Bash
17 lines
449 B
Bash
#!/bin/sh
|
|
# gil
|
|
FIREFOX_VERSION=$1
|
|
|
|
if [ -z "$FIREFOX_VERSION" ]; then
|
|
echo "Usage: $0 <version>"
|
|
exit 2
|
|
fi
|
|
|
|
rm -rf firefox-$FIREFOX_VERSION
|
|
mkdir firefox-$FIREFOX_VERSION
|
|
cd firefox-$FIREFOX_VERSION
|
|
wget -r -N -l 1 -np -nd -A "*.xpi" ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$FIREFOX_VERSION/linux-i686/xpi/*.xpi
|
|
rm -f robots.txt
|
|
tar -cj *.xpi > ../firefox-$FIREFOX_VERSION-langpacks.tar.bz2
|
|
#rm -rf firefox-$FIREFOX_VERSION
|