mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-02 06:05:45 +01:00
txt-from-texi: add support for variables
The support for variables in the text-from-texi script is used to automatically insert the current version of Window Maker, inherited from the definition in the AC_INIT command, so it will be always correctly updated without the need for hand work. Having this version information is recommended by GNU texinfo because if the document happens to get distributed outside a package it can help user avoid problems. The second use is to define a variable 'emailsupport' which contains the email address of the development team, so we can also inherit it from the AC_INIT setting. The third use is for a special variable 'cctexi2txt' to differentiate between texi2any and our script, because when using texi2any the title page is not generated, so we need to duplicate some information in the source, but we do not want it to appear twice in our generated doc. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
740c812476
commit
58854cab9b
3
doc/build/Makefile.am
vendored
3
doc/build/Makefile.am
vendored
@@ -9,7 +9,8 @@ all-local: $(top_srcdir)/README.i18n
|
||||
$(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 \
|
||||
$(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)" ; \
|
||||
else \
|
||||
echo "Warning: \"$(top_srcdir)/README.i18n\" is not writeable, not regenerated" ; \
|
||||
fi
|
||||
|
||||
14
doc/build/Translations.texi
vendored
14
doc/build/Translations.texi
vendored
@@ -22,7 +22,17 @@
|
||||
|
||||
@finalout
|
||||
|
||||
@c If the version was not given to texi2any with -D, assume we are being run
|
||||
@c on the git dev branch
|
||||
@ifclear version
|
||||
@set version git#next
|
||||
@end ifclear
|
||||
|
||||
@c We provide the ability to change the email address for support from the
|
||||
@c command line
|
||||
@ifclear emailsupport
|
||||
@set emailsupport @email{wmaker-dev@@lists.windowmaker.org}
|
||||
@end ifclear
|
||||
|
||||
@c ---------------------------------------------------------------------------------- Title Page ---
|
||||
|
||||
@@ -67,15 +77,19 @@ Published by The Window Maker team on @today{}.
|
||||
@ifnottex
|
||||
@top Window Maker Internationalisation
|
||||
|
||||
@ifclear cctexi2txt
|
||||
A guide to enable support for language translations
|
||||
in @sc{Window Maker}.
|
||||
@end ifclear
|
||||
@end ifnottex
|
||||
|
||||
@contents
|
||||
|
||||
@ifnottex
|
||||
@ifclear cctexi2txt
|
||||
@sp 1
|
||||
This manual is for Window Maker, version @value{version}.
|
||||
@end ifclear
|
||||
@end ifnottex
|
||||
|
||||
@menu
|
||||
|
||||
Reference in New Issue
Block a user