| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 | #!/bin/sh## clean.sh - multi-language support script#  Remove all language output files from lang folder.#result=0rm_if_exists(){ if [ -e $1 ]; then  echo -n " removing '$1'..." >&2  if rm $1; then   echo "OK" >&2  else   echo "NG!" >&2   result=1  fi fi}clean_lang(){ if [ "$1" = "en" ]; then  rm_if_exists lang_$1.tmp else  rm_if_exists lang_$1.tmp  rm_if_exists lang_en_$1.tmp  rm_if_exists lang_en_$1.dif  rm_if_exists lang_$1.ofs  rm_if_exists lang_$1.txt fi rm_if_exists lang_$1_check.dif rm_if_exists lang_$1.bin rm_if_exists lang_$1.dat rm_if_exists lang_$1_1.tmp rm_if_exists lang_$1_2.tmp}echo "lang-clean.sh started" >&2clean_lang enclean_lang czclean_lang declean_lang esclean_lang frclean_lang itclean_lang pl#Community language support#Dutchclean_lang nl#Use the 2 lines below as a template and replace 'qr'##New language#clean_lang_qrecho -n "lang-clean.sh finished" >&2if [ $result -eq 0 ]; then echo " with success" >&2else echo " with errors!" >&2ficase "$-" in *i*) echo "press enter key" >&2; read ;;esacexit $result
 |