2018-05-22 18:26:45 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# make_lang_en.sh - create english dictionary from msgs
|
|
|
|
echo "make_lang_en.sh"
|
2018-05-23 12:17:23 +00:00
|
|
|
cat msgs_en_used_once.txt msgs_en_used_more.txt |\
|
|
|
|
sed "s/[ ]*$//g" |\
|
2018-05-22 18:26:45 +00:00
|
|
|
sed "s/\bCUSTOM_MENDEL_NAME\b/\"Prusa i3 MK3\"/g" |\
|
2018-05-23 12:17:23 +00:00
|
|
|
sed "s/\" \"//g" |\
|
2018-05-22 18:26:45 +00:00
|
|
|
sed 's/\\"/\\x22/g' |\
|
|
|
|
sed 's/\\xF8/\\xf8/g' |\
|
2018-05-23 12:17:23 +00:00
|
|
|
sort -k4 | sed "s/^/#/;s/ \"/\n\"/;s/\"$/\"\n/" > lang_en.txt
|
2018-05-22 18:26:45 +00:00
|
|
|
echo "finished... press any key"
|
|
|
|
read
|
|
|
|
exit
|