[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: terms generator: accept input fi
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: terms generator: accept input file path instead of just a basename |
Date: |
Wed, 10 Jan 2024 13:01:08 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 2d4d0e7e terms generator: accept input file path instead of just a
basename
2d4d0e7e is described below
commit 2d4d0e7ef13016fd876c288096d4d62575403f76
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Jan 10 12:56:33 2024 +0100
terms generator: accept input file path instead of just a basename
The taler-terms-generator broke when an actual path instead of just a
basename was passed.
Also, the usage of sed was wrong and unnecessary.
---
contrib/taler-terms-generator | 35 ++++++++++++++---------------------
1 file changed, 14 insertions(+), 21 deletions(-)
diff --git a/contrib/taler-terms-generator b/contrib/taler-terms-generator
index 0e6946ea..34659953 100755
--- a/contrib/taler-terms-generator
+++ b/contrib/taler-terms-generator
@@ -26,14 +26,7 @@ set -eu
# Call with target language as first argument.
function make_config()
{
- XLOC=$(echo "$LOCALE_DIR" | sed -e "s/\//\\\\\\//g")
- sed -e "s/%VERSION%/$VERSION/g" \
- -e "s/%TITLE%/$TITLE/g" \
- -e "s/%AUTHOR%/$AUTHOR/g" \
- -e "s/%LOCALE_DIR%/$XLOC/g" \
- -e "s/%COPYRIGHT%/$COPYRIGHT/g" \
- -e "s/%LANGUAGE%/$1/g" \
- > "${BUILDDIR}/conf.py" <<EOF
+ cat > "${BUILDDIR}/conf.py" <<EOF
import sys
import os
sys.path.append(os.path.abspath('_exts'))
@@ -47,14 +40,14 @@ templates_path = ['_templates']
source_suffix = {
'.rst': 'restructuredtext',
}
-master_doc = '%VERSION%'
-project = u'%VERSION%'
-copyright = u'%COPYRIGHT%'
-version = '%VERSION%'
-release = '%VERSION%'
-language = "%LANGUAGE%"
+master_doc = '$VERSION_BASENAME'
+project = u'$VERSION_BASENAME'
+copyright = u'$COPYRIGHT'
+version = '$VERSION_BASENAME'
+release = '$VERSION_BASENAME'
+language = "$LANGUAGE"
exclude_patterns = ['_build', '_exts', 'cf', 'prebuilt']
-locale_dirs = ['%LOCALE_DIR%/']
+locale_dirs = ['$LOCALE_DIR/']
gettext_compact = False
pygments_style = 'sphinx'
html_theme = 'epub'
@@ -64,8 +57,8 @@ html_theme_options = {
"relbar1": "false",
"footer": "false",
}
-html_title = "%TITLE%"
-html_short_title = "%TITLE%"
+html_title = "$TITLE"
+html_short_title = "$TITLE"
html_use_index = True
html_show_sphinx = False
latex_elements = {
@@ -79,11 +72,11 @@ latex_elements = {
#'preamble': '',
}
latex_documents = [
- ('%VERSION%', '%VERSION%.tex',
- '%TITLE%', '%AUTHOR%', 'manual'),
+ ('$VERSION_BASENAME', '$VERSION_BASENAME.tex',
+ '$VERSION_BASENAME', '$VERSION_BASENAME', 'manual'),
]
-epub_basename = "%VERSION%"
-epub_title = "%TITLE%"
+epub_basename = "$VERSION_BASENAME"
+epub_title = "$TITLE"
EOF
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: terms generator: accept input file path instead of just a basename,
gnunet <=