Updated git_doc to git 1.8
[TortoiseGit.git] / doc / source / en / TortoiseGit / git_doc / git-sh-i18n--envsubst.xml
blob7ee1b16c47d4d38897a0626e6cf206fd05f76119
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!DOCTYPE sect2 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">\r
3 \r
4 <sect2 lang="en" id="git-sh-i18n&#45;&#45;envsubst(1)">\r
5     <title>git-sh-i18n&#45;&#45;envsubst(1)</title>\r
6 <indexterm>\r
7 <primary>git-sh-i18n&#45;&#45;envsubst(1)</primary>\r
8 </indexterm>\r
9 <simplesect id="git-sh-i18n&#45;&#45;envsubst(1)__name">\r
10 <title>NAME</title>\r
11 <simpara>git-sh-i18n--envsubst - Git's own envsubst(1) for i18n fallbacks</simpara>\r
12 </simplesect>\r
13 <simplesect id="git-sh-i18n&#45;&#45;envsubst(1)__synopsis">\r
14 <title>SYNOPSIS</title>\r
15 <blockquote>\r
16 <literallayout>eval_gettext () {\r
17         printf "%s" "$1" | (\r
18                 export PATH $(<emphasis>git sh-i18n&#45;&#45;envsubst</emphasis> --variables "$1");\r
19                 <emphasis>git sh-i18n&#45;&#45;envsubst</emphasis> "$1"\r
20         )\r
21 }</literallayout>\r
22 </blockquote>\r
23 </simplesect>\r
24 <simplesect id="git-sh-i18n&#45;&#45;envsubst(1)__description">\r
25 <title>DESCRIPTION</title>\r
26 <simpara>This is not a command the end user would want to run.  Ever.\r
27 This documentation is meant for people who are studying the\r
28 plumbing scripts and/or are writing new ones.</simpara>\r
29 <simpara><emphasis>git sh-i18n&#45;&#45;envsubst</emphasis> is Git's stripped-down copy of the GNU\r
30 <emphasis>envsubst(1)</emphasis> program that comes with the GNU gettext package. It's\r
31 used internally by <xref linkend="git-sh-i18n(1)" /> to interpolate the variables\r
32 passed to the <emphasis>eval_gettext</emphasis> function.</simpara>\r
33 <simpara>No promises are made about the interface, or that this\r
34 program won't disappear without warning in the next version\r
35 of Git. Don't use it.</simpara>\r
36 </simplesect>\r
37 <simplesect id="git-sh-i18n&#45;&#45;envsubst(1)__git">\r
38 <title>GIT</title>\r
39 <simpara>Part of the <xref linkend="git(1)" /> suite</simpara>\r
40 </simplesect>\r
41 </sect2>\r