git-sh-i18n--envsubst: add SYNOPSIS section to the documentation
Change the documentation for the git-sh-i18n--envsubst program to include a SYNOPSIS section. Include the invocation of the program from git-sh-i18n.sh. Not having a SYNOPSIS section caused the "doc" target to fail on Centos 5.5 with asciidoc 8.2.5, while building with 8.6.4 on Debian works just fine. The relevant error was: ERROR: git-sh-i18n--envsubst.txt: line 9: second section must be named SYNOPSIS Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ævar Arnfjörð Bjarmason committed
May 29, 2011 at 11:00 UTC
f5008f56d5aba06598e1c6272f4f55b4ee4bb016
1 file changed
+10
Documentation/git-sh-i18n--envsubst.txt
+10
@@ -5,6 +5,16 @@ NAME
5
----
6
git-sh-i18n--envsubst - Git's own envsubst(1) for i18n fallbacks
7
8
+SYNOPSIS
9
+--------
10
+[verse]
11
+eval_gettext () {
12
+ printf "%s" "$1" | (
13
+ export PATH $('git sh-i18n--envsubst' --variables "$1");
14
+ 'git sh-i18n--envsubst' "$1"
15
+ )
16
+}
17
+
18
DESCRIPTION
19
-----------
20