527f1bb
#!/bin/bash
527f1bb
5ba1bc0
VERSION=102.12.0
a0ff91c
URL=https://ftp.mozilla.org/pub/firefox/releases/${VERSION}esr/linux-x86_64/xpi/
527f1bb
aaac480
for u in $URL; do
a0ff91c
  mkdir -p langpacks && pushd langpacks
a0ff91c
  wget -erobots=off -c -r -l1 -nd -nc -A.xpi -U langpacks $u
a0ff91c
popd
a0ff91c
done
034aeda
#pushd langpacks
034aeda
#for u in `ls *.xpi`; do
034aeda
#  mv $u icecat-${VERSION}.$u
034aeda
#done
034aeda
#find . -type f -name '*.xpi' | while read FILE ; do
034aeda
#  newfile="$(echo ${FILE} |sed -e 's/.xpi/.langpack.xpi/g')" ;
034aeda
#  mv "${FILE}" "${newfile}" ;
034aeda
#done
034aeda
#popd
7f6efcf
rm -f icecat-*-langpacks.tar.gz
a0ff91c
tar -zcvf icecat-${VERSION}-langpacks.tar.gz langpacks
aaac480
rm -rf langpacks
527f1bb
exit 0