[Pkg-shadow-commits] r2521 - in upstream/trunk: . man man/po
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Sat Mar 14 16:18:06 UTC 2009
Author: nekral-guest
Date: 2009-03-14 16:18:06 +0000 (Sat, 14 Mar 2009)
New Revision: 2521
Modified:
upstream/trunk/ChangeLog
upstream/trunk/man/Makefile.am
upstream/trunk/man/generate_mans.mak
upstream/trunk/man/generate_translations.mak
upstream/trunk/man/po/Makefile.in.in
Log:
* man/po/Makefile.in.in: xml2po cannot exclude one entity for
expansion. Make sure config.xml does not exist when the POT file
is created in order to keep the configurations in the POT file
* man/generate_translations.mak: make sure config.xml does not
exist neither when the translated XML is generated. Add the
missing %config; (strip out by xml2po). and make sure config.xml
is present when the translated manpage is generated.
* man/generate_mans.mak: config.xml is needed for the generation
of manpages (already in the .deps for the English manpages, but
needed for the translations).
* man/Makefile.am: Added missing CREATE_HOME.xml.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2009-03-14 13:29:55 UTC (rev 2520)
+++ upstream/trunk/ChangeLog 2009-03-14 16:18:06 UTC (rev 2521)
@@ -1,5 +1,19 @@
2009-03-14 Nicolas François <nicolas.francois at centraliens.net>
+ * man/po/Makefile.in.in: xml2po cannot exclude one entity for
+ expansion. Make sure config.xml does not exist when the POT file
+ is created in order to keep the configurations in the POT file
+ * man/generate_translations.mak: make sure config.xml does not
+ exist neither when the translated XML is generated. Add the
+ missing %config; (strip out by xml2po). and make sure config.xml
+ is present when the translated manpage is generated.
+ * man/generate_mans.mak: config.xml is needed for the generation
+ of manpages (already in the .deps for the English manpages, but
+ needed for the translations).
+ * man/Makefile.am: Added missing CREATE_HOME.xml.
+
+2009-03-14 Nicolas François <nicolas.francois at centraliens.net>
+
* etc/login.defs: Added note for PAM enabled configurations.
2009-03-14 Nicolas François <nicolas.francois at centraliens.net>
Modified: upstream/trunk/man/Makefile.am
===================================================================
--- upstream/trunk/man/Makefile.am 2009-03-14 13:29:55 UTC (rev 2520)
+++ upstream/trunk/man/Makefile.am 2009-03-14 16:18:06 UTC (rev 2521)
@@ -105,6 +105,7 @@
CHSH_AUTH.xml \
CONSOLE.xml \
CONSOLE_GROUPS.xml \
+ CREATE_HOME.xml \
DEFAULT_HOME.xml \
ENCRYPT_METHOD.xml \
ENV_HZ.xml \
Modified: upstream/trunk/man/generate_mans.mak
===================================================================
--- upstream/trunk/man/generate_mans.mak 2009-03-14 13:29:55 UTC (rev 2520)
+++ upstream/trunk/man/generate_mans.mak 2009-03-14 16:18:06 UTC (rev 2521)
@@ -17,7 +17,7 @@
SHA_CRYPT_COND=no_sha_crypt
endif
-%: %.xml Makefile
+%: %.xml Makefile config.xml
$(XSLTPROC) --stringparam profile.condition "$(PAM_COND);$(SHADOWGRP_COND);$(SHA_CRYPT_COND)" \
-nonet http://docbook.sourceforge.net/release/xsl/current/manpages/profile-docbook.xsl $<
Modified: upstream/trunk/man/generate_translations.mak
===================================================================
--- upstream/trunk/man/generate_translations.mak 2009-03-14 13:29:55 UTC (rev 2520)
+++ upstream/trunk/man/generate_translations.mak 2009-03-14 16:18:06 UTC (rev 2521)
@@ -3,9 +3,16 @@
LANG=$(notdir $(CURDIR))
%.xml: ../%.xml ../po/$(LANG).po
+ [ ! -f ../config.xml ] || mv ../config.xml ../config.xml.bak
xml2po --expand-all-entities -l $(LANG) -p ../po/$(LANG).po -o $@ ../$@
sed -i 's:\(^<refentry .*\)>:\1 lang="$(LANG)">:' $@
+ [ ! -f ../config.xml.bak ] || mv ../config.xml.bak ../config.xml
+ sed -i 's/config SYSTEM "config.xml">/config SYSTEM "config.xml">\%config;/' $@
+config.xml: ../config.xml.in
+ make -C .. config.xml
+ cp ../config.xml $@
+
include ../generate_mans.mak
CLEANFILES = .xml2po.mo $(EXTRA_DIST) $(addsuffix .xml,$(EXTRA_DIST))
Modified: upstream/trunk/man/po/Makefile.in.in
===================================================================
--- upstream/trunk/man/po/Makefile.in.in 2009-03-14 13:29:55 UTC (rev 2520)
+++ upstream/trunk/man/po/Makefile.in.in 2009-03-14 16:18:06 UTC (rev 2521)
@@ -91,11 +91,15 @@
# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
# TODO: set MSGID_BUGS_ADDRESS, COPYRIGHT_HOLDER
$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
- @tmpdir=`pwd`; \
- echo -n "cd $(top_srcdir)/man && "; \
- echo "xml2po --expand-all-entities -o $(tmpdir)/$(DOMAIN).po $(notdir $(POTFILES))"; \
+ @set -e; tmpdir=`pwd`; \
+ echo "cd $(top_srcdir)/man"; \
cd $(top_srcdir)/man; \
+ echo "[ ! -f config.xml ] || mv config.xml config.xml.bak"; \
+ [ ! -f config.xml ] || mv config.xml config.xml.bak; \
+ echo "xml2po --expand-all-entities -o $$tmpdir/$(DOMAIN).po $(notdir $(POTFILES))"; \
xml2po --expand-all-entities -o $$tmpdir/$(DOMAIN).po $(notdir $(POTFILES)); \
+ echo "[ ! -f config.xml.bak ] || mv config.xml.bak config.xml"; \
+ [ ! -f config.xml.bak ] || mv config.xml.bak config.xml; \
cd $$tmpdir
test ! -f $(DOMAIN).po || { \
if test -f $(srcdir)/$(DOMAIN).pot; then \
More information about the Pkg-shadow-commits
mailing list