Browse Source

Merge pull request #862 from XPila/MK3-new_lang

Mk3 new lang
XPila 6 years ago
parent
commit
06c6c72431
2 changed files with 2 additions and 2 deletions
  1. 1 1
      lang/lang-build.sh
  2. 1 1
      lang/lang-check.sh

+ 1 - 1
lang/lang-build.sh

@@ -91,7 +91,7 @@ generate_binary()
  fi | sed 's/^\"\\x00\"$/\"\"/' > lang_$1.tmp
  #create lang_xx.dat (binary text data file)
 # cat lang_$1.tmp | sed 's/^\"/\/bin\/echo -e \"/;s/"$/\\x00\"/' > lang_$1.shx
- cat lang_$1.tmp | sed 's/^\"/\/bin\/echo -e \"/;s/"$/\\x00\"/' | sh >lang_$1.dat
+ cat lang_$1.tmp | sed 's/^\"/\/bin\/echo -e -n \"/;s/"$/\\x00\"/' | sh >lang_$1.dat
  #calculate number of strings
  count=$(grep -c '^"' lang_$1.tmp)
  echo "count="$count >&2

+ 1 - 1
lang/lang-check.sh

@@ -63,7 +63,7 @@ l=0
 #create lang_xx_2.tmp (temporary text file from dictionary)
 cat lang_$1.tmp | sed 's/^\"/printf \"\\x22/;s/"$/\\x22\\x0a\"/' | sh >lang_$1_2.tmp
 #compare temporary files
-diff lang_$1_2.tmp lang_$1_2.tmp >lang_$1_check.dif
+diff -a lang_$1_1.tmp lang_$1_2.tmp >lang_$1_check.dif
 dif=$(cat lang_$1_check.dif)
 if [ -z "$dif" ]; then
  echo 'binary data OK'