]> granicus.if.org Git - shadow/commitdiff
* autogen.sh: Restore original autoreconf (see 2010-08-29's change
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 12 Feb 2011 14:57:37 +0000 (14:57 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 12 Feb 2011 14:57:37 +0000 (14:57 +0000)
for autogen.sh)
* configure.in, man/po/Makefile.in.in, man/po/Makefile.in:
Makefile.in.in replaced by Makefile.in to avoid config.status
issues when there are multiple po directories.
* man/po/LINGUAS: Adapted to above change.
* man/po/POTFILES.in, man/po/XMLFILES: POTFILES.in replaced by
XMLFILES.
* man/Makefile.am: generate_mans.deps shall be included by make,
not automake.

ChangeLog
autogen.sh
configure.in
man/Makefile.am
man/po/LINGUAS
man/po/Makefile.in [moved from man/po/Makefile.in.in with 86% similarity]
man/po/POTFILES.in [deleted file]
man/po/XMLFILES [new file with mode: 0644]

index f546d91b3db95c363f732055ea67b6df5c444491..6d900b90b0af4ef00abbb3b84810c2eded17876f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2011-02-12  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * autogen.sh: Restore original autoreconf (see 2010-08-29's change
+       for autogen.sh)
+       * configure.in, man/po/Makefile.in.in, man/po/Makefile.in:
+       Makefile.in.in replaced by Makefile.in to avoid config.status
+       issues when there are multiple po directories.
+       * man/po/LINGUAS: Adapted to above change.
+       * man/po/POTFILES.in, man/po/XMLFILES: POTFILES.in replaced by
+       XMLFILES.
+       * man/Makefile.am: generate_mans.deps shall be included by make,
+       not automake.
+
 2010-11-19  Nicolas François  <nicolas.francois@centraliens.net>
 
        * NEWS, libmisc/console.c: Fix CONSOLE parser. This caused login
index 37197428ba76cb582493b622515fcdc235806c9a..336463c9c75d10000c4c977aefa9a71e40fc69bc 100755 (executable)
@@ -1,16 +1,6 @@
 #! /bin/sh
 
-# FIXME: Find a way to run autoreconf again.
-# autopoint create mess in man/po
-#autoreconf -v -f --install || exit 1
-
-#autoreconf executes the following
-#autopoint --force
-aclocal --force 
-libtoolize --copy --force
-/usr/bin/autoconf --force
-/usr/bin/autoheader --force
-automake --add-missing --copy --force-missing
+autoreconf -v -f --install || exit 1
 
 ./configure \
        CFLAGS="-O2 -Wall" \
index b79073fce102bdffb133f5549b72e0e03135676c..99e935be30ce3c8cd8cda8f542d82feff5f95582 100644 (file)
@@ -586,7 +586,7 @@ AC_CONFIG_FILES([
        doc/Makefile
        man/Makefile
        man/config.xml
-       man/po/Makefile.in
+       man/po/Makefile
        man/cs/Makefile
        man/de/Makefile
        man/es/Makefile
index 4d7818c0073221e68d0673d7f107f5dffff202b8..e99c4df82bcfd2f440c574c9b4496d714a896b5e 100644 (file)
@@ -180,7 +180,7 @@ generate_mans.deps: *.xml
 
 if ENABLE_REGENERATE_MAN
 
-include generate_mans.deps
+@ENABLE_REGENERATE_MAN_TRUE@include generate_mans.deps
 
 include generate_mans.mak
 
index 6dbaa87e8258dc2854510da03946b5118f1a2d95..0d7e47736f5919007ebedc47f503f3ef25142d39 100644 (file)
@@ -1,6 +1,4 @@
-de
-fr
-it
-pl
-ru
-sv
+LINGUAS = de fr it pl ru sv
+POFILES = $(srcdir)/de.po $(srcdir)/fr.po $(srcdir)/it.po $(srcdir)/pl.po $(srcdir)/ru.po $(srcdir)/sv.po
+UPDATEPOFILES = de.po-update fr.po-update it.po-update pl.po-update ru.po-update sv.po-update
+DUMMYPOFILES = de.nop fr.nop it.nop pl.nop ru.nop sv.nop
similarity index 86%
rename from man/po/Makefile.in.in
rename to man/po/Makefile.in
index 1e83addd1dd3f2a98cd2fde46d2c7ac6b32efb42..55f7f52de1858435b95d7e5bfeb7483a1b3612e6 100644 (file)
 # Origin: gettext-0.16
 # Modified to handle translations with xml2po by Nicolas François - 2007
 
-PACKAGE = @PACKAGE@
-VERSION = @VERSION@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE = shadow
+VERSION = 4.1.4.2+svn3283
+PACKAGE_BUGREPORT = 
 
 SHELL = /bin/sh
-@SET_MAKE@
 
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
-VPATH = @srcdir@
 
-MSGFMT_ = @MSGFMT@
-MSGFMT_no = @MSGFMT@
-MSGFMT_yes = @MSGFMT_015@
+srcdir = .
+top_srcdir = ../..
+
+
+MSGFMT_ = /usr/bin/msgfmt
+MSGFMT_no = /usr/bin/msgfmt
+MSGFMT_yes = /usr/bin/msgfmt
 MSGFMT = $(MSGFMT_$(USE_MSGCTXT))
-XGETTEXT_ = @XGETTEXT@
-XGETTEXT_no = @XGETTEXT@
-XGETTEXT_yes = @XGETTEXT_015@
+XGETTEXT_ = /usr/bin/xgettext
+XGETTEXT_no = /usr/bin/xgettext
+XGETTEXT_yes = /usr/bin/xgettext
 XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT))
 MSGMERGE = msgmerge --previous
-MSGMERGE_UPDATE = @MSGMERGE@ --update --previous
+MSGMERGE_UPDATE = /usr/bin/msgmerge --update --previous
 MSGINIT = msginit
 MSGCONV = msgconv
 MSGFILTER = msgfilter
 
-POFILES = @POFILES@
-UPDATEPOFILES = @UPDATEPOFILES@
-DUMMYPOFILES = @DUMMYPOFILES@
-DISTFILES.common = Makefile.in.in remove-potcdate.sin
-DISTFILES = $(DISTFILES.common) Makevars POTFILES.in $(POFILES)
+include $(srcdir)/LINGUAS
+#DISTFILES.common = Makefile.in remove-potcdate.sin
+DISTFILES.common = remove-potcdate.sin
+DISTFILES = $(DISTFILES.common) Makevars XMLFILES LINGUAS $(POFILES)
 
-POTFILES = \
+include $(srcdir)/XMLFILES
 
-# Makevars gets inserted here. (Don't remove this line!)
+include $(srcdir)/Makevars
 
 .SUFFIXES:
 .SUFFIXES: .po .sed .sin .nop .po-create .po-update
@@ -57,7 +56,7 @@ remove-potcdate.sin: ../../po/remove-potcdate.sin
        mv t-$@ $@
 
 
-all: all-@USE_NLS@
+all: all-yes
 
 all-yes: stamp-po
 all-no:
@@ -90,12 +89,12 @@ stamp-po: $(srcdir)/$(DOMAIN).pot
 # This target rebuilds $(DOMAIN).pot; it is an expensive operation.
 # 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
+$(DOMAIN).pot-update: $(XMLFILES) $(srcdir)/XMLFILES remove-potcdate.sed
        @set -e; tmpdir=`pwd`; \
        echo "cd $(top_srcdir)/man"; \
        cd $(top_srcdir)/man; \
-       echo "xml2po --expand-all-entities -o $$tmpdir/$(DOMAIN).po $(notdir $(POTFILES))"; \
-       xml2po --expand-all-entities -o $$tmpdir/$(DOMAIN).po $(notdir $(POTFILES)); \
+       echo "xml2po --expand-all-entities -o $$tmpdir/$(DOMAIN).po $(notdir $(XMLFILES))"; \
+       xml2po --expand-all-entities -o $$tmpdir/$(DOMAIN).po $(notdir $(XMLFILES)); \
        cd $$tmpdir
        test ! -f $(DOMAIN).po || { \
          if test -f $(srcdir)/$(DOMAIN).pot; then \
@@ -160,7 +159,7 @@ mostlyclean:
 clean: mostlyclean
 
 distclean: clean
-       rm -f Makefile Makefile.in POTFILES
+       rm -f Makefile
 
 maintainer-clean: distclean
        @echo "This command is intended for maintainers to use;"
@@ -185,7 +184,6 @@ dist2: stamp-po $(DISTFILES)
            dists="$$dists ChangeLog.$$i"; \
          fi; \
        done; \
-       if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
        for file in $$dists; do \
          if test -f $$file; then \
            cp -p $$file $(distdir) || exit 1; \
@@ -193,6 +191,8 @@ dist2: stamp-po $(DISTFILES)
            cp -p $(srcdir)/$$file $(distdir) || exit 1; \
          fi; \
        done
+# avant for precedant
+#      if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
 
 update-po: Makefile
        $(MAKE) $(DOMAIN).pot-update
@@ -232,9 +232,9 @@ update-po: Makefile
 
 $(DUMMYPOFILES):
 
-Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@
-       cd $(top_builddir) \
-         && $(SHELL) ./config.status $(subdir)/$@.in po-directories
+#Makefile: Makefile.in Makevars $(top_builddir)/config.status LINGUAS
+#      cd $(top_builddir) \
+#        && $(SHELL) ./config.status $(subdir)/$@
 
 force:
 
diff --git a/man/po/POTFILES.in b/man/po/POTFILES.in
deleted file mode 100644 (file)
index 01a3e9c..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-# List of xml which contain translatable strings.
-
-man/chage.1.xml
-man/chfn.1.xml
-man/chgpasswd.8.xml
-man/chpasswd.8.xml
-man/chsh.1.xml
-man/expiry.1.xml
-man/faillog.5.xml
-man/faillog.8.xml
-man/gpasswd.1.xml
-man/groupadd.8.xml
-man/groupdel.8.xml
-man/groupmems.8.xml
-man/groupmod.8.xml
-man/groups.1.xml
-man/grpck.8.xml
-man/gshadow.5.xml
-man/lastlog.8.xml
-man/limits.5.xml
-man/login.1.xml
-man/login.access.5.xml
-man/login.defs.5.xml
-man/logoutd.8.xml
-man/newgrp.1.xml
-man/newusers.8.xml
-man/nologin.8.xml
-man/passwd.1.xml
-man/passwd.5.xml
-man/porttime.5.xml
-man/pwck.8.xml
-man/pwconv.8.xml
-man/shadow.3.xml
-man/shadow.5.xml
-man/sg.1.xml
-man/su.1.xml
-man/suauth.5.xml
-man/useradd.8.xml
-man/userdel.8.xml
-man/usermod.8.xml
-man/vipw.8.xml
diff --git a/man/po/XMLFILES b/man/po/XMLFILES
new file mode 100644 (file)
index 0000000..de7925d
--- /dev/null
@@ -0,0 +1,42 @@
+# List of xml which contain translatable strings.
+XMLFILES = \
+       $(top_srcdir)/man/chage.1.xml \
+       $(top_srcdir)/man/chfn.1.xml \
+       $(top_srcdir)/man/chgpasswd.8.xml \
+       $(top_srcdir)/man/chpasswd.8.xml \
+       $(top_srcdir)/man/chsh.1.xml \
+       $(top_srcdir)/man/expiry.1.xml \
+       $(top_srcdir)/man/faillog.5.xml \
+       $(top_srcdir)/man/faillog.8.xml \
+       $(top_srcdir)/man/gpasswd.1.xml \
+       $(top_srcdir)/man/groupadd.8.xml \
+       $(top_srcdir)/man/groupdel.8.xml \
+       $(top_srcdir)/man/groupmems.8.xml \
+       $(top_srcdir)/man/groupmod.8.xml \
+       $(top_srcdir)/man/groups.1.xml \
+       $(top_srcdir)/man/grpck.8.xml \
+       $(top_srcdir)/man/gshadow.5.xml \
+       $(top_srcdir)/man/lastlog.8.xml \
+       $(top_srcdir)/man/limits.5.xml \
+       $(top_srcdir)/man/login.1.xml \
+       $(top_srcdir)/man/login.access.5.xml \
+       $(top_srcdir)/man/login.defs.5.xml \
+       $(top_srcdir)/man/logoutd.8.xml \
+       $(top_srcdir)/man/newgrp.1.xml \
+       $(top_srcdir)/man/newusers.8.xml \
+       $(top_srcdir)/man/nologin.8.xml \
+       $(top_srcdir)/man/passwd.1.xml \
+       $(top_srcdir)/man/passwd.5.xml \
+       $(top_srcdir)/man/porttime.5.xml \
+       $(top_srcdir)/man/pwck.8.xml \
+       $(top_srcdir)/man/pwconv.8.xml \
+       $(top_srcdir)/man/shadow.3.xml \
+       $(top_srcdir)/man/shadow.5.xml \
+       $(top_srcdir)/man/sg.1.xml \
+       $(top_srcdir)/man/su.1.xml \
+       $(top_srcdir)/man/suauth.5.xml \
+       $(top_srcdir)/man/useradd.8.xml \
+       $(top_srcdir)/man/userdel.8.xml \
+       $(top_srcdir)/man/usermod.8.xml \
+       $(top_srcdir)/man/vipw.8.xml
+