thunderbird/thunderbird-autoupdate

20 lines
575 B
Plaintext
Raw Normal View History

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