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