Skip to content

Commit

Permalink
Cleanup outdated code
Browse files Browse the repository at this point in the history
  • Loading branch information
3d-gussner committed Jan 3, 2022
1 parent 9aebf23 commit 6dd7681
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 37 deletions.
7 changes: 3 additions & 4 deletions PF-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 )"

Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions lang/lang-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions lang/lang-clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 0 additions & 13 deletions lang/lang-export.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
13 changes: 0 additions & 13 deletions lang/lang-import.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6dd7681

Please sign in to comment.