| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 | #!/bin/bash## fw-clean.sh - multi-language support script#  Remove all firmware 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}echo "fw-clean.sh started" >&2rm_if_exists text.symrm_if_exists progmem1.symrm_if_exists progmem1.lssrm_if_exists progmem1.hexrm_if_exists progmem1.chrrm_if_exists progmem1.varrm_if_exists progmem1.txtrm_if_exists textaddr.txtrm_if_exists firmware.binrm_if_exists firmware.hexrm_if_exists firmware_cz.hexrm_if_exists firmware_de.hexrm_if_exists firmware_es.hexrm_if_exists firmware_fr.hexrm_if_exists firmware_it.hexrm_if_exists firmware_pl.hexrm_if_exists progmem.outrm_if_exists textaddr.outrm_if_exists update_lang.outrm_if_exists update_lang_cz.outrm_if_exists update_lang_de.outrm_if_exists update_lang_es.outrm_if_exists update_lang_fr.outrm_if_exists update_lang_it.outrm_if_exists update_lang_pl.outrm_if_exists lang.binrm_if_exists lang.hex#Community language support#Dutchrm_if_exists firmware_nl.hexrm_if_exists update_lang_nl.out#Use the 2 lines below as a template and replace 'qr'##New language#rm_if_exists firmware_qr.hex#rm_if_exists update_lang_qr.outecho -n "fw-clean.sh finished" >&2if [ $result -eq 0 ]; then echo " with success" >&2else echo " with errors!" >&2ficase "$-" in *i*) echo "press enter key"; read ;;esacexit $result
 |