mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-28 17:32:29 +01:00
i18n: fix failing generation of the README.i18n file
The command in 'autogen.sh' was using an invalid syntax to call the script, so the file was not generated; this patch fixes the invocation. The test in the makefile was not correct because it would not generate the file if it was deleted; now the check works whether the file exists or not, and properly skips generation if it is read-only (for make distcheck). Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
2bf380cd27
commit
d309aa65d4
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Generate the documentation about compiling Window Maker
|
# Generate the documentation about compiling Window Maker
|
||||||
./script/generate-txt-from-texi.sh doc/build/Translations.texi > README.i18n
|
./script/generate-txt-from-texi.sh "doc/build/Translations.texi" -o "README.i18n"
|
||||||
|
|
||||||
# Change date of the files to the past so they will be regenerated by 'make'
|
# Change date of the files to the past so they will be regenerated by 'make'
|
||||||
touch -d '2000-01-01' README.i18n
|
touch -d '2000-01-01' README.i18n
|
||||||
|
|||||||
2
doc/build/Makefile.am
vendored
2
doc/build/Makefile.am
vendored
@@ -7,7 +7,7 @@ EXTRA_DIST = Readme \
|
|||||||
all-local: $(top_srcdir)/README.i18n
|
all-local: $(top_srcdir)/README.i18n
|
||||||
|
|
||||||
$(top_srcdir)/README.i18n: $(srcdir)/Translations.texi $(top_srcdir)/script/generate-txt-from-texi.sh
|
$(top_srcdir)/README.i18n: $(srcdir)/Translations.texi $(top_srcdir)/script/generate-txt-from-texi.sh
|
||||||
$(AM_V_GEN)if test -w "$(top_srcdir)/README.i18n" ; then \
|
$(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 \
|
$(top_srcdir)/script/generate-txt-from-texi.sh \
|
||||||
$(srcdir)/Translations.texi -o $(top_srcdir)/README.i18n \
|
$(srcdir)/Translations.texi -o $(top_srcdir)/README.i18n \
|
||||||
-Dversion="$(PACKAGE_VERSION)" -e "$(PACKAGE_BUGREPORT)" ; \
|
-Dversion="$(PACKAGE_VERSION)" -e "$(PACKAGE_BUGREPORT)" ; \
|
||||||
|
|||||||
Reference in New Issue
Block a user