Browse Source

Cleanup outdated code

3d-gussner 3 years ago
parent
commit
6dd7681f6b
5 changed files with 3 additions and 37 deletions
  1. 3 4
      PF-build.sh
  2. 0 3
      lang/lang-build.sh
  3. 0 4
      lang/lang-clean.sh
  4. 0 13
      lang/lang-export.sh
  5. 0 13
      lang/lang-import.sh

+ 3 - 4
PF-build.sh

@@ -56,7 +56,7 @@
 #   Some may argue that this is only used by a script, BUT as soon someone accidentally or on purpose starts Arduino IDE
 #   it will use the default Arduino IDE folders and so can corrupt the build environment.
 #
-# Version: 2.0.0-Build_63
+# Version: 2.0.0-Build_66
 # Change log:
 # 12 Jan 2019, 3d-gussner, Fixed "compiler.c.elf.flags=-w -Os -Wl,-u,vfprintf -lprintf_flt -lm -Wl,--gc-sections" in 'platform.txt'
 # 16 Jan 2019, 3d-gussner, Build_2, Added development check to modify 'Configuration.h' to prevent unwanted LCD messages that Firmware is unknown
@@ -165,6 +165,7 @@
 # 23 Jun 2021, 3d-gussner, Improve MK404 usage
 # 24 Jun 2021, 3d-gussner, Fix MK404 user interaction not to show if compiling 'All' variants
 # 24 Jun 2021, 3d-gussner, MK404 is only supported on Linux at this moment.
+# 03 Jan 2022, 3d-gussner, Remove calling lang-community.sh as not needed anymore
 
 SCRIPT_PATH="$( cd "$(dirname "$0")" ; pwd -P )"
 
@@ -220,7 +221,7 @@ while getopts b:c:d:g:h:i:j:l:m:n:o:p:v:x:y:?h flag
 # '?' 'h' argument usage and help
 if [ "$help_flag" == "1" ] ; then
 echo "***************************************"
-echo "* PF-build.sh Version: 2.0.0-Build_63 *"
+echo "* PF-build.sh Version: 2.0.0-Build_66 *"
 echo "***************************************"
 echo "Arguments:"
 echo "$(tput setaf 2)-b$(tput sgr0) Build/commit number"
@@ -1302,8 +1303,6 @@ create_multi_firmware()
         # build languages
         echo "$(tput setaf 3)"
         ./lang-build.sh || failures 25
-        # build community languages
-        #./lang-community.sh || failures 25
         # Combine compiled firmware with languages 
         ./fw-build.sh || failures 25
         cp not_tran.txt not_tran_$VARIANT.txt

+ 0 - 3
lang/lang-build.sh

@@ -147,9 +147,6 @@ generate_binary()
  chsum=$(cat lang_$1.bin | xxd | cut -c11-49 | tr ' ' "\n" | sed '/^$/d' | awk 'BEGIN { sum = 0; } { sum += strtonum("0x"$1); if (sum > 0xffff) sum -= 0x10000; } END { printf("%x\n", sum); }')
  /bin/echo -n -e $(echo -n $((0x$chsum)) | awk "$awk_ui16") |\
   dd of=lang_$1.bin bs=1 count=2 seek=8 conv=notrunc 2>/dev/null
- #remove temporary files
-# rm -f lang_$1.tmp
-# rm -f lang_$1.dat
 }
 
 if [ -z "$1" ]; then set 'all'; fi

+ 0 - 4
lang/lang-clean.sh

@@ -56,10 +56,6 @@ echo "lang-clean languages:$LANGUAGES" >&2
   clean_lang $lang
  done
 
-#Use the 2 lines below as a template and replace 'qr'
-##New language
-#clean_lang_qr
-
 echo -n "lang-clean.sh finished" >&2
 if [ $result -eq 0 ]; then
  echo " with success" >&2

+ 0 - 13
lang/lang-export.sh

@@ -27,19 +27,6 @@ if [ "$LNG" = "all" ]; then
   for lang in $LANGUAGES; do
    ./lang-export.sh $lang
   done
- #./lang-export.sh cz
- #./lang-export.sh de
- #./lang-export.sh es
- #./lang-export.sh fr
- #./lang-export.sh it
- #./lang-export.sh pl
-#Community language support
- #if [ -n "$COMMUNITY_LANGUAGES" ]; then
- # for l in $COMMUNITY_LANGUAGES; do
- #  echo " Exporting : $l" >&2
- #  ./lang-export.sh $l
- # done
- #fi
  exit 0
 fi
 

+ 0 - 13
lang/lang-import.sh

@@ -20,19 +20,6 @@ if [ "$LNG" = "all" ]; then
   for lang in $LANGUAGES; do
    ./lang-import.sh $lang
   done
- #./lang-import.sh cz
- #./lang-import.sh de
- #./lang-import.sh es
- #./lang-import.sh fr
- #./lang-import.sh it
- #./lang-import.sh pl
-#DO NOT add Community languages here !!!
- #if [ -n "$COMMUNITY_LANGUAGES" ]; then
- # for l in $COMMUNITY_LANGUAGES; do
- #  echo " Exporting : $l" >&2
- #  ./lang-export.sh $l
- # done
- #fi
  exit 0
 fi