1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-02 06:05:45 +01:00

Change the way the ChangeLog date is extracted for Texi2txt generated docs

When building into another directory than in the source, the hard-coded
relative path to the changelog will fail finding the file, causing an empty
date in the generated file when '@today' is used.

This patch is making sure the ChangeLog is taken in the source directory to
avoid any problem.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2019-02-22 17:04:15 +01:00
committed by Carlos R. Mafra
parent 8606ae9a83
commit 4665972175
2 changed files with 14 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ $(top_srcdir)/INSTALL-WMAKER: $(srcdir)/Compilation.texi $(top_srcdir)/script/ge
$(AM_V_GEN)if test ! -e "$(top_srcdir)/INSTALL-WMAKER" -o -w "$(top_srcdir)/INSTALL-WMAKER" ; then \
$(top_srcdir)/script/generate-txt-from-texi.sh \
$(srcdir)/Compilation.texi -o $(top_srcdir)/INSTALL-WMAKER \
-d "`LANG=C date -u -r $(top_srcdir)/ChangeLog '+%d %B %Y' | sed -e 's,^0,,' `" \
-Dversion="$(PACKAGE_VERSION)" -e "$(PACKAGE_BUGREPORT)" ; \
else \
echo "Warning: \"$(top_srcdir)/INSTALL-WMAKER\" is not writeable, not regenerated" ; \
@@ -27,6 +28,7 @@ $(top_srcdir)/README.i18n: $(srcdir)/Translations.texi $(top_srcdir)/script/gene
$(AM_V_GEN)if test ! -e "$(top_srcdir)/README.i18n" -o -w "$(top_srcdir)/README.i18n" ; then \
$(top_srcdir)/script/generate-txt-from-texi.sh \
$(srcdir)/Translations.texi -o $(top_srcdir)/README.i18n \
-d "`LANG=C date -u -r $(top_srcdir)/ChangeLog '+%d %B %Y' | sed -e 's,^0,,' `" \
-Dversion="$(PACKAGE_VERSION)" -e "$(PACKAGE_BUGREPORT)" ; \
else \
echo "Warning: \"$(top_srcdir)/README.i18n\" is not writeable, not regenerated" ; \