Skip to content
This repository was archived by the owner on Apr 9, 2022. It is now read-only.

Commit bfb2084

Browse files
author
Erazem Kokot
committed
Wallpaper and translation cleanup
* Update language.sh with new paths to translation files * Fix updating anarchy since wallpapers are now in the main repo
1 parent 5c41eea commit bfb2084

File tree

2 files changed

+19
-26
lines changed

2 files changed

+19
-26
lines changed

etc/anarchy.conf

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,28 +118,21 @@ config() {
118118
;;
119119
-u|--update)
120120
tmp_dir=$(mktemp -d)
121-
wallpaper_dir=$(mktemp -d)
122121
echo -ne "\n${Yellow}*> Anarchy: Downloading..."
123122
wget -q -4 --no-check-certificate -O ${tmp_dir}/master.tar.gz https://github.com/AnarchyLinux/installer/archive/master.tar.gz
124123
if [ "$?" -gt "0" ]; then
125124
echo -e "${Red}*> Error: ${Yellow}Active network connection not detected - Please connect to the internet and try again. Exiting..."
126125
exit 2
127126
fi
128-
wget -q -4 --no-check-certificate -O ${wallpaper_dir}/master.tar.gz https://github.com/AnarchyLinux/branding/archive/master.tar.gz
129-
if [ "$?" -gt "0" ]; then
130-
echo -e "${Red}*> Error: ${Yellow}Active network connection not detected - Please connect to the internet and try again. Exiting..."
131-
exit 2
132-
fi
133127
echo -e "${Green}done"
134128

135129
echo -ne "\n${Yellow}*> Anarchy: Updating..."
136130
tar zxf ${tmp_dir}/master.tar.gz -C ${tmp_dir} &> /dev/null
137-
tar zxf ${wallpaper_dir}/master.tar.gz -C ${wallpaper_dir} &> /dev/null
138131
cp ${tmp_dir}/installer-master/anarchy-installer.sh /usr/bin/anarchy
139132
cp ${tmp_dir}/installer-master/etc/anarchy.conf /etc/anarchy.conf
140133
cp ${tmp_dir}/installer-master/lib/* /usr/lib/anarchy/
141134
cp ${tmp_dir}/installer-master/lang/* /usr/share/anarchy/lang/
142-
cp "${wallpaper_dir}"/branding-master/wallpapers/* /usr/share/anarchy/extra/wallpapers/
135+
cp ${tmp_dir}/installer-master/wallpapers/* /usr/share/anarchy/extra/wallpapers/
143136
cp -f ${tmp_dir}/installer-master/extra/{sysinfo,iptest} /usr/bin/
144137
cp -r ${tmp_dir}/installer-master/extra/* /usr/share/anarchy/extra/
145138
echo -e "${Green}done"

lib/language.sh

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,24 +40,24 @@ language() {
4040
"Swedish" "Svenska" 3>&1 1>&2 2>&3)
4141

4242
case "$ILANG" in
43-
"English") export lang_file="${anarchy_directory}"/lang/anarchy-english.conf ;;
44-
"Bulgarian") export lang_file="${anarchy_directory}"/lang/anarchy-bulgarian.conf lib=bg bro=bg ;;
45-
"Dutch") export lang_file="${anarchy_directory}"/lang/anarchy-dutch.conf lib=nl bro=nl ;;
46-
"French") export lang_file="${anarchy_directory}"/lang/anarchy-french.conf lib=fr bro=fr ;;
47-
"German") export lang_file="${anarchy_directory}"/lang/anarchy-german.conf lib=de bro=de ;;
48-
"Greek") export lang_file="${anarchy_directory}"/lang/anarchy-greek.conf lib=el bro=el ;;
49-
"Hungarian") export lang_file="${anarchy_directory}"/lang/anarchy-hungarian.conf lib=hu bro=hu ;;
50-
"Indonesian") export lang_file="${anarchy_directory}"/lang/anarchy-indonesia.conf lib=id bro=id ;;
51-
"Italian") export lang_file="${anarchy_directory}"/lang/anarchy-italian.conf lib=it bro=it ;;
52-
"Latvian") export lang_file="${anarchy_directory}"/lang/anarchy-latvian.conf lib=lv bro=lv ;;
53-
"Lithuanian") export lang_file="${anarchy_directory}"/lang/anarchy-lithuanian.conf lib=lt bro=lt ;;
54-
"Polish") export lang_file="${anarchy_directory}"/lang/anarchy-polish.conf lib=pl bro=pl ;;
55-
"Portuguese") export lang_file="${anarchy_directory}"/lang/anarchy-portuguese.conf lib=pt bro=pt-pt ;;
56-
"Portuguese-Brazilian") export lang_file="${anarchy_directory}"/lang/anarchy-portuguese-br.conf lib=pt-br bro=pt-br ;;
57-
"Romanian") export lang_file="${anarchy_directory}"/lang/anarchy-romanian.conf lib=ro bro=ro ;;
58-
"Russian") export lang_file="${anarchy_directory}"/lang/anarchy-russian.conf lib=ru bro=ru ;;
59-
"Spanish") export lang_file="${anarchy_directory}"/lang/anarchy-spanish.conf lib=es bro=es-es ;;
60-
"Swedish") export lang_file="${anarchy_directory}"/lang/anarchy-swedish.conf lib=sv bro=sv-se ;;
43+
"English") export lang_file="${anarchy_directory}"/lang/english.conf ;;
44+
"Bulgarian") export lang_file="${anarchy_directory}"/lang/bulgarian.conf lib=bg bro=bg ;;
45+
"Dutch") export lang_file="${anarchy_directory}"/lang/dutch.conf lib=nl bro=nl ;;
46+
"French") export lang_file="${anarchy_directory}"/lang/french.conf lib=fr bro=fr ;;
47+
"German") export lang_file="${anarchy_directory}"/lang/german.conf lib=de bro=de ;;
48+
"Greek") export lang_file="${anarchy_directory}"/lang/greek.conf lib=el bro=el ;;
49+
"Hungarian") export lang_file="${anarchy_directory}"/lang/hungarian.conf lib=hu bro=hu ;;
50+
"Indonesian") export lang_file="${anarchy_directory}"/lang/indonesia.conf lib=id bro=id ;;
51+
"Italian") export lang_file="${anarchy_directory}"/lang/italian.conf lib=it bro=it ;;
52+
"Latvian") export lang_file="${anarchy_directory}"/lang/latvian.conf lib=lv bro=lv ;;
53+
"Lithuanian") export lang_file="${anarchy_directory}"/lang/lithuanian.conf lib=lt bro=lt ;;
54+
"Polish") export lang_file="${anarchy_directory}"/lang/polish.conf lib=pl bro=pl ;;
55+
"Portuguese") export lang_file="${anarchy_directory}"/lang/portuguese.conf lib=pt bro=pt-pt ;;
56+
"Portuguese-Brazilian") export lang_file="${anarchy_directory}"/lang/portuguese-br.conf lib=pt-br bro=pt-br ;;
57+
"Romanian") export lang_file="${anarchy_directory}"/lang/romanian.conf lib=ro bro=ro ;;
58+
"Russian") export lang_file="${anarchy_directory}"/lang/russian.conf lib=ru bro=ru ;;
59+
"Spanish") export lang_file="${anarchy_directory}"/lang/spanish.conf lib=es bro=es-es ;;
60+
"Swedish") export lang_file="${anarchy_directory}"/lang/swedish.conf lib=sv bro=sv-se ;;
6161
esac
6262

6363
}

0 commit comments

Comments
 (0)