From 0fbcaea871be75b9dbcb2b9cee19df9a61177717 Mon Sep 17 00:00:00 2001 From: wangqr Date: Wed, 25 Sep 2019 16:59:34 -0400 Subject: [PATCH] Fix make_pot.sh --- po/make_pot.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/po/make_pot.sh b/po/make_pot.sh index d504152ec..57d4c78e0 100755 --- a/po/make_pot.sh +++ b/po/make_pot.sh @@ -7,7 +7,7 @@ maybe_append() { msgid=$(echo $msg | cut -d'|' -f3-) if ! grep -Fq "msgid $msgid" aegisub.pot; then - echo "\n#: $msgfile:$msgline\nmsgid $msgid\nmsgstr \"\"\n" >> aegisub.pot + echo -e "\n#: $msgfile:$msgline\nmsgid $msgid\nmsgstr \"\"\n" >> aegisub.pot fi done } @@ -33,8 +33,8 @@ grep '"[A-Za-z ]\+" : {' -n ../src/libresrc/default_hotkey.json \ | sed 's/^\([0-9]\+:\).*\("[^"]\+"\).*$/default_hotkey.json|\1|\2/' \ | maybe_append -find ../automation -name *.lua \ - | xargs grep tr\"[^\"]\*\" -o -n \ +find ../automation -name '*.lua' \ + | xargs grep 'tr"[^"]*"' -o -n \ | sed 's/\(.*\):\([0-9]\+\):tr\(".*"\)/\1|\2|\3/' \ | sed 's/\\/\\\\\\\\/g' \ | maybe_append