git-gui/po/glossary/txt-to-pot.sh: use the $( ... ) construct for command substitution

The Git CodingGuidelines prefer the $(...) construct for command substitution instead of using the backquotes `...`. The backquoted form is the traditional method for command substitution, and is supported by POSIX. However, all but the simplest uses become complicated quickly. In particular, embedded command substitutions and/or the use of double quotes require careful escaping with the backslash character. The patch was generated by: for _f in $(find . -name "*.sh") do perl -i -pe 'BEGIN{undef $/;} s/`(.+?)`/\$(\1)/smg' "${_f}" done and then carefully proof-read. Signed-off-by: Elia Pinto <gitter.spiros@gmail.com> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>

Elia Pinto committed Dec 22, 2015 at 15:10 UTC c217e26c9df0a701a3ba4be0654bedf8c328c36b
1 file changed +2 -2
po/glossary/txt-to-pot.sh
+2 -2
@@ -11,7 +11,7 @@
11 if [ $# -eq 0 ]
12 then
13 cat <<!
14 -Usage: `basename $0` git-gui-glossary.txt > git-gui-glossary.pot
14 +Usage: $(basename $0) git-gui-glossary.txt > git-gui-glossary.pot
15 !
16 exit 1;
17 fi
@@ -33,7 +33,7 @@ cat <<!
33 msgid ""
34 msgstr ""
35 "Project-Id-Version: PACKAGE VERSION\n"
36 -"POT-Creation-Date: `date +'%Y-%m-%d %H:%M%z'`\n"
36 +"POT-Creation-Date: $(date +'%Y-%m-%d %H:%M%z')\n"
37 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
38 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
39 "Language-Team: LANGUAGE <LL@li.org>\n"