-
Notifications
You must be signed in to change notification settings - Fork 1
/
fetch.sh
executable file
·33 lines (30 loc) · 996 Bytes
/
fetch.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
# Songbird/Nightingale version
version='2.2.0'
# Make a folder for locales
mkdir locales
# Remove locales.xml first
rm locales.xml
# Download locales.xml
wget https://locales.songbirdnest.com/bundles/3/Songbird/${version}/timestamp/osarch/en-US/release/os/default/default/locales.xml --no-check-certificate
# Generate a list of downloadable files with wget
xsltproc locales.xsl locales.xml > locales/getlangpacks.sh
cd locales
# Make the script executable
chmod +x getlangpacks.sh
# Launch it to wget all langpacks
./getlangpacks.sh
# Unzip each langpack to have files
for file in *; do
if [ -d $file ]; then
#mkdir $file/test;
unzip $file/langpack-* -d $file
rm $file/langpack-*
unzip $file/songbird.jar -d $file/songbird
rm $file/songbird.jar
rm $file/install.rdf
rm $file/chrome.manifest
rm -Rf $file/chrome
wget "http://translate.songbirdnest.com/languages/"${file}"/translators" -O $file/translators.html
fi
done