summaryrefslogtreecommitdiff
path: root/Documentation/git-sh-i18n--envsubst.txt
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2011-05-29 11:00:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-05-30 08:08:32 (GMT)
commitf5008f56d5aba06598e1c6272f4f55b4ee4bb016 (patch)
treefd507a1f26ac7232317446e4d4f3c7f97d44aeba /Documentation/git-sh-i18n--envsubst.txt
parenta9930e359c45302f92639e8cd0a61c9c912e0b22 (diff)
downloadgit-f5008f56d5aba06598e1c6272f4f55b4ee4bb016.zip
git-f5008f56d5aba06598e1c6272f4f55b4ee4bb016.tar.gz
git-f5008f56d5aba06598e1c6272f4f55b4ee4bb016.tar.bz2
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>
Diffstat (limited to 'Documentation/git-sh-i18n--envsubst.txt')
-rw-r--r--Documentation/git-sh-i18n--envsubst.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/git-sh-i18n--envsubst.txt b/Documentation/git-sh-i18n--envsubst.txt
index f5bbf77..61e4c08 100644
--- a/Documentation/git-sh-i18n--envsubst.txt
+++ b/Documentation/git-sh-i18n--envsubst.txt
@@ -5,6 +5,16 @@ NAME
----
git-sh-i18n--envsubst - Git's own envsubst(1) for i18n fallbacks
+SYNOPSIS
+--------
+[verse]
+eval_gettext () {
+ printf "%s" "$1" | (
+ export PATH $('git sh-i18n--envsubst' --variables "$1");
+ 'git sh-i18n--envsubst' "$1"
+ )
+}
+
DESCRIPTION
-----------