Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit a1d61db4 authored by afsadmin's avatar afsadmin
Browse files

set revdate attribute to current date and time

parent df97740e
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,14 @@ mydir=$(cd "${mydir}" && pwd)
declare -r input_fname="${1:-Manual.asciidoc}"
# we have to set the revdate here. Otherwise asciidoctor uses
# the timestamp of Manual.asciidoc.
declare revdate=$(git log -1 --date=format:'%Y-%m-%d' --format=%cd)
sed -i "s/@REVDATE@/${revdate}/" Manual.asciidoc
"${mydir}/fix_latexmath"
asciidoctor -r asciidoctor-katex -d book "${input_fname}"
# revert the change we did above
git checkout -- Manual.asciidoc
......@@ -4,8 +4,6 @@ mydir=$(dirname "$0")
mydir=$(cd "${mydir}" && pwd)
texstyle=manual.sty
#declare -x TEXINPUTS="::${mydir}/style"
#echo "$TEXINPUTS"
declare -r input_fname="${1:-Manual.asciidoc}"
declare -r xml_fname="${input_fname%.*}.xml"
......@@ -14,15 +12,21 @@ declare -r pdf_fname="${input_fname%.*}.pdf"
declare -r create_tex_output='yes'
# if we run on macOS with asciidoctor and TeX from Macports
declare -x TEXINPUTS=".:/opt/local/share/dblatex/latex/style:/opt/local/share/dblatex/latex/misc:"
rm -f *.aux *.bbl *.cb* *.lo* *.idx *.toc *.tex *.xml *.glo *.4tc *.dvi *.tmp *.xref
# we have to set the revdate here. Otherwise asciidoctor uses
# the timestamp of Manual.asciidoc.
declare revdate=$(git log -1 --date=format:'%Y-%m-%d' --format=%cd)
sed -i "s/@REVDATE@/${revdate}/" Manual.asciidoc
"${mydir}/fix_latexmath"
if [[ "${create_tex_output}" == "no" ]]; then
asciidoctor -b docbook5 -d book "${input_fname}" || exit 1
#dblatex --texstyle="${texstyle}" -V -P "table.default.position=[hp]" -t pdf "${xml_fname}" || exit 2
dblatex --texstyle="${texstyle}" -V -P "table.default.position=[hp]" -t pdf "${xml_fname}" || exit 2
dblatex -V -P "table.default.position=[hp]" -t pdf "${xml_fname}" || exit 2
else
asciidoctor -v -b docbook5 -d book "${input_fname}" || exit 1
......@@ -31,3 +35,5 @@ else
pdflatex "${tex_fname}" || exit 4
fi
# revert the change we did above
git checkout -- Manual.asciidoc
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment