Cleanup outdated code

This commit is contained in:
3d-gussner 2022-01-03 12:19:58 +01:00
parent 9aebf23d41
commit 6dd7681f6b
5 changed files with 3 additions and 37 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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