#!/bin/sh # gil THUNDERBIRD_VERSION=$1 if [ -z "$THUNDERBIRD_VERSION" ]; then echo "Usage: $0 " 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/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