[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
docbook-xsl version number in pathname (was Re: [PATCH] gnu: Add moreuti
From: |
Mark H Weaver |
Subject: |
docbook-xsl version number in pathname (was Re: [PATCH] gnu: Add moreutils.) |
Date: |
Sun, 01 Feb 2015 17:08:27 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Mark H Weaver <address@hidden> writes:
> With these simplifications, it would look like this:
>
> (lambda* (#:key inputs #:allow-other-keys)
> (substitute* "Makefile"
> (("/usr/share/xml/.*/docbook.xsl")
> (string-append
> (assoc-ref inputs "docbook-xsl")
> "/xml/xsl/docbook-xsl-1.78.1/manpages/docbook.xsl"))))
I just realized, it's not good that the docbook-xsl version number is
hardcoded here. This will break the next time docbook-xsl is updated.
Does anyone know how to improve this?
The relevant bit in the package Makefile that is being modified is this:
DOCBOOK2XMAN=xsltproc --param man.authors.section.enabled 0
/usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl
Can we modify this command to avoid giving the full pathname? Or should
we modify our docbook-xsl package to add a symlink that allows us to
omit the version number?
Mark