seamonkey/seamonkey-autoupdate

17 lines
493 B
Plaintext
Raw Permalink Normal View History

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