Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • schweer-guest/debian-edu-doc
  • rafaelff-guest/debian-edu-doc
  • debian-edu/debian-edu-doc
3 results
Show changes
Commits on Source (3)
......@@ -16,6 +16,13 @@ debian-edu-doc (2.10.13) UNRELEASED; urgency=medium
* Update Debian Edu Buster manual from the wiki.
* d/control: use canonical URL for Vcs-Git, thanks lintian.
[ Wolfgang Schweer ]
* scripts/get_manual:
- Add date derived from SOURCE_DATE_EPOCH to manual titles.
(Closes: #919887).
* Makefile.common:
- Tell dblatex to use a specific build directory instead of a random one.
-- Holger Levsen <holger@debian.org> Sun, 20 Jan 2019 15:34:37 +0100
debian-edu-doc (2.10.12) unstable; urgency=medium
......
......@@ -10,7 +10,7 @@ LANGUAGES = $(subst $(name).,,$(subst .po,,$(wildcard *.po)))
# Program name and option
DBTOEPUB = dbtoepub
XP = xsltproc --nonet --novalid --xinclude ../common/html.xsl
DBLATEX = SOURCE_DATE_EPOCH=$$SOURCE_DATE_EPOCH SOURCE_DATE_EPOCH_TEX_PRIMITIVES=1 dblatex -T native -b xetex -p ../common/dblatex.xsl
DBLATEX = SOURCE_DATE_EPOCH=$$SOURCE_DATE_EPOCH SOURCE_DATE_EPOCH_TEX_PRIMITIVES=1 dblatex "--tmpdir=texdir" -T native -b xetex -p ../common/dblatex.xsl
SED_JA_REGEX = 's/dbtimestamp/dbtimestamp\ format=\"Y\ 年\ m\ 月\ d\ 日\"/'
# Use Make internal function 'subst': substitute -manual with nothing to get
......
......@@ -166,10 +166,12 @@ echo "calling ../scripts/get_images $xmlfile $path1"
# -0\777 read multiple lines
perl -0\777 -pi -e "s/<ulink url=\"$path2(.*)\/(.*)\">(.*)\n<\/ulink>/<link linkend=\"\2\">\3<\/link>/g" $xmlfile
# set SOURCE_DATE_EPOCH
SOURCE_DATE_EPOCH="$(dpkg-parsechangelog -STimestamp -l ../../debian/changelog)"
DATE="$(date -d @$SOURCE_DATE_EPOCH +'%Y-%m-%d')"
# make it a docbook article again
sed -i "1,/</ s#<#<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE article PUBLIC \"-//OASIS//DTD DocBook XML V4.4//EN\" \"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd\"><article lang=\"en\"><articleinfo><title>$DEBIAN_EDU_DOC_TITLE <?dbtimestamp?></title></articleinfo>\n<#" $xmlfile
sed -i "1,/</ s#<#<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE article PUBLIC \"-//OASIS//DTD DocBook XML V4.4//EN\" \"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd\"><article lang=\"en\"><articleinfo><title>$DEBIAN_EDU_DOC_TITLE $DATE</title></articleinfo>\n<#" $xmlfile
sed -i "$ s#>#>\n</article>#" $xmlfile
# remove the first empty lines
sed -i "1,2d" $xmlfile
......