Blob Blame History Raw
#!/bin/bash

URL=http://ftp.gnu.org/gnu/gnuzilla/52.3.0/langpacks/

for u in $URL; do
mkdir -p langpacks && cd langpacks
wget -erobots=off -c -r -l1 -nd -nc -A.xpi -U langpacks $u
rm -f icecat-52.3.0.ja-JP-mac.langpack.xpi icecat-52.3.0.compare-locales.langpack.xpi
done
find . -type f -name '*.xpi' | while read FILE ; do
  newfile="$(echo ${FILE} |sed -e 's/52.3.0.//g' -e 's/icecat-//g')" ;
  mv "${FILE}" "${newfile}" ;
done
cd ..
tar -zcvf icecat-52.3.0-langpacks.tar.gz langpacks
rm -rf langpacks
exit 0