seamonkey/seamonkey-autoupdate

17 lines
504 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" ftp://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/$SEAMONKEY_VERSION/langpack/
rm -f robots.txt
tar -cj *.xpi > ../seamonkey-$SEAMONKEY_VERSION-langpacks.tar.bz2
#rm -rf seamonkey-$SEAMONKEY_VERSION