Przeglądaj źródła

New man pages build system.

Nicolas FRANCOIS 19 lat temu
rodzic
commit
ae00fe6176
100 zmienionych plików z 98 dodań i 103 usunięć
  1. 5 0
      ChangeLog
  2. 0 11
      configure.ac
  3. 0 0
      man/822-date.1
  4. 0 1
      man/C/.gitignore
  5. 0 43
      man/C/Makefile.am
  6. 21 0
      man/ChangeLog
  7. 72 6
      man/Makefile.am
  8. 0 0
      man/cleanup-info.8
  9. 0 1
      man/de/.gitignore
  10. 0 6
      man/de/Makefile.am
  11. 0 0
      man/deb-control.5
  12. 0 0
      man/deb-old.5
  13. 0 0
      man/deb.5
  14. 0 0
      man/dpkg-architecture.1
  15. 0 0
      man/dpkg-checkbuilddeps.1
  16. 0 0
      man/dpkg-deb.1
  17. 0 0
      man/dpkg-divert.8
  18. 0 0
      man/dpkg-name.1
  19. 0 0
      man/dpkg-query.1
  20. 0 0
      man/dpkg-scanpackages.1
  21. 0 0
      man/dpkg-scansources.1
  22. 0 0
      man/dpkg-source.1
  23. 0 0
      man/dpkg-split.1
  24. 0 0
      man/dpkg-statoverride.8
  25. 0 0
      man/dpkg.1
  26. 0 0
      man/dpkg.cfg.5
  27. 0 0
      man/dselect.1
  28. 0 0
      man/dselect.cfg.5
  29. 0 1
      man/es/.gitignore
  30. 0 6
      man/es/Makefile.am
  31. 0 1
      man/fr/.gitignore
  32. 0 6
      man/fr/Makefile.am
  33. 0 1
      man/hu/.gitignore
  34. 0 6
      man/hu/Makefile.am
  35. 0 0
      man/install-info.8
  36. 0 1
      man/ja/.gitignore
  37. 0 6
      man/ja/Makefile.am
  38. 0 1
      man/pl/.gitignore
  39. 0 6
      man/pl/Makefile.am
  40. 0 0
      man/po/add_de/822-date.1.de.add
  41. 0 0
      man/po/add_de/cleanup-info.8.de.add
  42. 0 0
      man/po/add_de/deb-control.5.de.add
  43. 0 0
      man/po/add_de/deb-old.5.de.add
  44. 0 0
      man/po/add_de/deb.5.de.add
  45. 0 0
      man/po/add_de/dpkg-architecture.1.de.add
  46. 0 0
      man/po/add_de/dpkg-checkbuilddeps.1.de.add
  47. 0 0
      man/po/add_de/dpkg-divert.8.de.add
  48. 0 0
      man/po/add_de/dpkg-name.1.de.add
  49. 0 0
      man/po/add_de/dpkg-scanpackages.1.de.add
  50. 0 0
      man/po/add_de/dpkg-scansources.1.de.add
  51. 0 0
      man/po/add_de/dpkg-statoverride.8.de.add
  52. 0 0
      man/po/add_de/dpkg.1.de.add
  53. 0 0
      man/po/add_de/dpkg.cfg.5.de.add
  54. 0 0
      man/po/add_de/dselect.cfg.5.de.add
  55. 0 0
      man/po/add_de/start-stop-daemon.8.de.add
  56. 0 0
      man/po/add_de/update-alternatives.8.de.add
  57. 0 0
      man/po/add_es/822-date.1.es.add
  58. 0 0
      man/po/add_es/cleanup-info.8.es.add
  59. 0 0
      man/po/add_es/deb-control.5.es.add
  60. 0 0
      man/po/add_es/deb-old.5.es.add
  61. 0 0
      man/po/add_es/deb.5.es.add
  62. 0 0
      man/po/add_es/dpkg-checkbuilddeps.1.es.add
  63. 0 0
      man/po/add_es/dpkg-deb.1.es.add
  64. 0 0
      man/po/add_es/dpkg-divert.8.es.add
  65. 0 0
      man/po/add_es/dpkg-name.1.es.add
  66. 0 0
      man/po/add_es/dpkg-scanpackages.1.es.add
  67. 0 0
      man/po/add_es/dpkg-scansources.1.es.add
  68. 0 0
      man/po/add_es/dpkg-source.1.es.add
  69. 0 0
      man/po/add_es/dpkg-split.1.es.add
  70. 0 0
      man/po/add_es/dpkg-statoverride.8.es.add
  71. 0 0
      man/po/add_es/dpkg.1.es.add
  72. 0 0
      man/po/add_es/dselect.1.es.add
  73. 0 0
      man/po/add_es/start-stop-daemon.8.es.add
  74. 0 0
      man/po/add_es/update-alternatives.8.es.add
  75. 0 0
      man/po/add_fr/822-date.1.fr.add
  76. 0 0
      man/po/add_fr/cleanup-info.8.fr.add
  77. 0 0
      man/po/add_fr/deb-control.5.fr.add
  78. 0 0
      man/po/add_fr/deb.5.fr.add
  79. 0 0
      man/po/add_fr/dpkg-architecture.1.fr.add
  80. 0 0
      man/po/add_fr/dpkg-cfg.5.fr.add
  81. 0 0
      man/po/add_fr/dpkg-checkbuilddeps.1.fr.add
  82. 0 0
      man/po/add_fr/dpkg-deb.1.fr.add
  83. 0 0
      man/po/add_fr/dpkg-divert.8.fr.add
  84. 0 0
      man/po/add_fr/dpkg-name.1.fr.add
  85. 0 0
      man/po/add_fr/dpkg-query.1.fr.add
  86. 0 0
      man/po/add_fr/dpkg-scanpackages.1.fr.add
  87. 0 0
      man/po/add_fr/dpkg-scansources.1.fr.add
  88. 0 0
      man/po/add_fr/dpkg-source.1.fr.add
  89. 0 0
      man/po/add_fr/dpkg-split.1.fr.add
  90. 0 0
      man/po/add_fr/dpkg-statoverride.8.fr.add
  91. 0 0
      man/po/add_fr/dpkg.1.fr.add
  92. 0 0
      man/po/add_fr/dpkg.cfg.5.fr.add
  93. 0 0
      man/po/add_fr/install-info.8.fr.add
  94. 0 0
      man/po/add_fr/start-stop-daemon.8.fr.add
  95. 0 0
      man/po/add_fr/update-alternatives.8.fr.add
  96. 0 0
      man/po/add_hu/deb-control.5.hu.add
  97. 0 0
      man/po/add_hu/dpkg-deb.1.hu.add
  98. 0 0
      man/po/add_hu/dpkg.cfg.5.hu.add
  99. 0 0
      man/po/add_hu/dselect.cfg.5.hu.add
  100. 0 0
      man/po4a/add_ja/822-date.1.ja.add

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2007-01-16  Nicolas François  <nicolas.francois@centraliens.net>
+
+	* configure.ac: There are no more Makefiles to generate in the
+	man/ subdirectories.
+
 2007-01-15  Ian Jackson  <iwj@ubuntu.com>
 
 	* src/processarc.c (process_archive): Add a missing newline to a

+ 0 - 11
configure.ac

@@ -109,17 +109,6 @@ AC_CONFIG_FILES([ Makefile
 		  intl/Makefile
 		  lib/Makefile
 		  man/Makefile
-		  man/C/Makefile
-		  man/de/Makefile
-		  man/es/Makefile
-		  man/fr/Makefile
-		  man/hu/Makefile
-		  man/ja/Makefile
-		  man/pl/Makefile
-		  man/pt_BR/Makefile
-		  man/ru/Makefile
-		  man/sv/Makefile
-		  man/po4a/Makefile
 		  origins/Makefile
 		  po/Makefile.in
 		  scripts/Makefile

man/C/822-date.1 → man/822-date.1


+ 0 - 1
man/C/.gitignore

@@ -1 +0,0 @@
-Makefile.in

+ 0 - 43
man/C/Makefile.am

@@ -1,43 +0,0 @@
-## Process this file with automake to produce Makefile.in
-
-dist_man_MANS = \
-	822-date.1 \
-	cleanup-info.8 \
-	deb-control.5 \
-	deb-old.5 \
-	deb.5 \
-	dpkg-architecture.1 \
-	dpkg-checkbuilddeps.1 \
-	dpkg-deb.1 \
-	dpkg-divert.8 \
-	dpkg-name.1 \
-	dpkg-query.1 \
-	dpkg-scanpackages.1 \
-	dpkg-scansources.1 \
-	dpkg-source.1 \
-	dpkg-split.1 \
-	dpkg-statoverride.8 \
-	dpkg.1 \
-	dpkg.cfg.5 \
-	dselect.1 \
-	dselect.cfg.5 \
-	install-info.8 \
-	start-stop-daemon.8 \
-	update-alternatives.8
-
-dpkg_source_aliases = \
-	dpkg-buildpackage.1 \
-	dpkg-distaddfile.1 \
-	dpkg-genchanges.1 \
-	dpkg-gencontrol.1 \
-	dpkg-parsechangelog.1 \
-	dpkg-shlibdeps.1
-
-man_MANS = $(dpkg_source_aliases)
-CLEANFILES = $(dpkg_source_aliases)
-
-
-$(dpkg_source_aliases):
-	echo ".so man1/dpkg-source.1" > $@
-	chmod 644 $@
-

+ 21 - 0
man/ChangeLog

@@ -1,3 +1,24 @@
+2007-01-16  Nicolas Francois  <nicolas.francois@centraliens.net>
+
+	* po/: New directory.
+	* po/dpkg-man.pot, po/de.po, po/es.po, po/fr.po, po/hu.po,
+	po/ja.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sv.po: Merge the POs
+	which used to be in po4a/. When multiple translations appeared for
+	a string, the string was marked as fuzzy. Also the POs now contain
+	the strings of all the man pages.
+	* po/add_de/, po/add_es, po/add_fr, po/add_hu, po/add_ja,
+	po/add_pl, po/add_pt_BR, po/add_ru, po/add_sv: Move the add_<lang>
+	directories from po4a/ to po/.
+	* po4a/: Removed.
+	* C/: Move the manpages to the root of the man/ directory.
+	* C/Makefile.am, de/Makefile.am es/Makefile.am, fr/Makefile.am,
+	hu/Makefile.am, ja/Makefile.am, pl/Makefile.am, pt_BR/Makefile.am,
+	ru/Makefile.am, sv/Makefile.am, po4a.mk: The languages makefiles
+	are no more needed. Also remove the language directories.
+	* Makefile.am: New build system.
+	The goal of these changes is to simplify the build system (less
+	files, less Makefiles, lower the depth of the file hierarchy).
+
 2007-01-09  Nicolas Francois  <nicolas.francois@centraliens.net>
 
 	* C/dpkg-deb.1: Make the copyright match the one from the source.

+ 72 - 6
man/Makefile.am

@@ -1,10 +1,76 @@
 ## Process this file with automake to produce Makefile.in
 
-# po4a must be the first sub-directory because it generates the translations.
-SUBDIRS = C po4a de es fr hu ja pl pt_BR ru sv
+all-local:
+	po4a --no-backups --variable srcdir=$(srcdir) \
+		$(srcdir)/po/po4a.cfg
+# Make the symlink
+	for lang in $(LINGUAS); do \
+		cd $$lang; \
+		$(MAKE) -f ../Makefile -B $(dpkg_source_aliases) \
+			srcdir="$(realpath $(srcdir))/$$lang"; \
+		cd ..; \
+	done
+
+clean-local:
+	po4a --rm-backups --rm-translations --variable srcdir=$(srcdir) \
+		$(srcdir)/po/po4a.cfg
+
+# Extract the list of languages from the po4a config file.
+LINGUAS = $(shell sed -ne 's/^.*\[po4a_langs\] \(.*\)$$/\1/p' $(srcdir)/po/po4a.cfg)
 
-.PHONY: updatepo
-updatepo:
-	list='$(SUBDIRS)'; for dir in $$list; do \
-		$(MAKE) -C "$$dir" updatepo; \
+install-data-local:
+	for lang in $(LINGUAS); do \
+		if [ -d $$lang ]; then \
+			cd $$lang; \
+			files=$$(echo *.[1-9]); \
+			$(MAKE) -f ../Makefile install-man \
+				mandir="$(mandir)/$$lang" \
+				man_MANS="" \
+				dist_man_MANS="$$files"; \
+			cd ..; \
+		fi \
 	done
+
+dist_man_MANS = \
+	822-date.1 \
+	cleanup-info.8 \
+	deb-control.5 \
+	deb-old.5 \
+	deb.5 \
+	dpkg-architecture.1 \
+	dpkg-checkbuilddeps.1 \
+	dpkg-deb.1 \
+	dpkg-divert.8 \
+	dpkg-name.1 \
+	dpkg-query.1 \
+	dpkg-scanpackages.1 \
+	dpkg-scansources.1 \
+	dpkg-source.1 \
+	dpkg-split.1 \
+	dpkg-statoverride.8 \
+	dpkg.1 \
+	dpkg.cfg.5 \
+	dselect.1 \
+	dselect.cfg.5 \
+	install-info.8 \
+	start-stop-daemon.8 \
+	update-alternatives.8
+
+dpkg_source_aliases = \
+	dpkg-buildpackage.1 \
+	dpkg-distaddfile.1 \
+	dpkg-genchanges.1 \
+	dpkg-gencontrol.1 \
+	dpkg-parsechangelog.1 \
+	dpkg-shlibdeps.1
+
+man_MANS = $(dpkg_source_aliases)
+CLEANFILES = $(dpkg_source_aliases)
+
+
+$(dpkg_source_aliases):
+	if [ -f dpkg-source.1 ] || [ -f $(srcdir)/dpkg-source.1 ]; then \
+		echo ".so man1/dpkg-source.1" > $@; \
+		chmod 644 $@; \
+	fi
+

man/C/cleanup-info.8 → man/cleanup-info.8


+ 0 - 1
man/de/.gitignore

@@ -1 +0,0 @@
-Makefile.in

+ 0 - 6
man/de/Makefile.am

@@ -1,6 +0,0 @@
-## Process this file with automake to produce Makefile.in
-
-lang=de
-
-include ../po4a.mk
-

man/C/deb-control.5 → man/deb-control.5


man/C/deb-old.5 → man/deb-old.5


man/C/deb.5 → man/deb.5


man/C/dpkg-architecture.1 → man/dpkg-architecture.1


man/C/dpkg-checkbuilddeps.1 → man/dpkg-checkbuilddeps.1


man/C/dpkg-deb.1 → man/dpkg-deb.1


man/C/dpkg-divert.8 → man/dpkg-divert.8


man/C/dpkg-name.1 → man/dpkg-name.1


man/C/dpkg-query.1 → man/dpkg-query.1


man/C/dpkg-scanpackages.1 → man/dpkg-scanpackages.1


man/C/dpkg-scansources.1 → man/dpkg-scansources.1


man/C/dpkg-source.1 → man/dpkg-source.1


man/C/dpkg-split.1 → man/dpkg-split.1


man/C/dpkg-statoverride.8 → man/dpkg-statoverride.8


man/C/dpkg.1 → man/dpkg.1


man/C/dpkg.cfg.5 → man/dpkg.cfg.5


man/C/dselect.1 → man/dselect.1


man/C/dselect.cfg.5 → man/dselect.cfg.5


+ 0 - 1
man/es/.gitignore

@@ -1 +0,0 @@
-Makefile.in

+ 0 - 6
man/es/Makefile.am

@@ -1,6 +0,0 @@
-## Process this file with automake to produce Makefile.in
-
-lang=es
-
-include ../po4a.mk
-

+ 0 - 1
man/fr/.gitignore

@@ -1 +0,0 @@
-Makefile.in

+ 0 - 6
man/fr/Makefile.am

@@ -1,6 +0,0 @@
-## Process this file with automake to produce Makefile.in
-
-lang=fr
-
-include ../po4a.mk
-

+ 0 - 1
man/hu/.gitignore

@@ -1 +0,0 @@
-Makefile.in

+ 0 - 6
man/hu/Makefile.am

@@ -1,6 +0,0 @@
-## Process this file with automake to produce Makefile.in
-
-lang=hu
-
-include ../po4a.mk
-

man/C/install-info.8 → man/install-info.8


+ 0 - 1
man/ja/.gitignore

@@ -1 +0,0 @@
-Makefile.in

+ 0 - 6
man/ja/Makefile.am

@@ -1,6 +0,0 @@
-## Process this file with automake to produce Makefile.in
-
-lang=ja
-
-include ../po4a.mk
-

+ 0 - 1
man/pl/.gitignore

@@ -1 +0,0 @@
-Makefile.in

+ 0 - 6
man/pl/Makefile.am

@@ -1,6 +0,0 @@
-## Process this file with automake to produce Makefile.in
-
-lang=pl
-
-include ../po4a.mk
-

man/po4a/add_de/822-date.1.de.add → man/po/add_de/822-date.1.de.add


man/po4a/add_de/cleanup-info.8.de.add → man/po/add_de/cleanup-info.8.de.add


man/po4a/add_de/deb-control.5.de.add → man/po/add_de/deb-control.5.de.add


man/po4a/add_de/deb-old.5.de.add → man/po/add_de/deb-old.5.de.add


man/po4a/add_de/deb.5.de.add → man/po/add_de/deb.5.de.add


man/po4a/add_de/dpkg-architecture.1.de.add → man/po/add_de/dpkg-architecture.1.de.add


man/po4a/add_de/dpkg-checkbuilddeps.1.de.add → man/po/add_de/dpkg-checkbuilddeps.1.de.add


man/po4a/add_de/dpkg-divert.8.de.add → man/po/add_de/dpkg-divert.8.de.add


man/po4a/add_de/dpkg-name.1.de.add → man/po/add_de/dpkg-name.1.de.add


man/po4a/add_de/dpkg-scanpackages.1.de.add → man/po/add_de/dpkg-scanpackages.1.de.add


man/po4a/add_de/dpkg-scansources.1.de.add → man/po/add_de/dpkg-scansources.1.de.add


man/po4a/add_de/dpkg-statoverride.8.de.add → man/po/add_de/dpkg-statoverride.8.de.add


man/po4a/add_de/dpkg.1.de.add → man/po/add_de/dpkg.1.de.add


man/po4a/add_de/dpkg.cfg.5.de.add → man/po/add_de/dpkg.cfg.5.de.add


man/po4a/add_de/dselect.cfg.5.de.add → man/po/add_de/dselect.cfg.5.de.add


man/po4a/add_de/start-stop-daemon.8.de.add → man/po/add_de/start-stop-daemon.8.de.add


man/po4a/add_de/update-alternatives.8.de.add → man/po/add_de/update-alternatives.8.de.add


man/po4a/add_es/822-date.1.es.add → man/po/add_es/822-date.1.es.add


man/po4a/add_es/cleanup-info.8.es.add → man/po/add_es/cleanup-info.8.es.add


man/po4a/add_es/deb-control.5.es.add → man/po/add_es/deb-control.5.es.add


man/po4a/add_es/deb-old.5.es.add → man/po/add_es/deb-old.5.es.add


man/po4a/add_es/deb.5.es.add → man/po/add_es/deb.5.es.add


man/po4a/add_es/dpkg-checkbuilddeps.1.es.add → man/po/add_es/dpkg-checkbuilddeps.1.es.add


man/po4a/add_es/dpkg-deb.1.es.add → man/po/add_es/dpkg-deb.1.es.add


man/po4a/add_es/dpkg-divert.8.es.add → man/po/add_es/dpkg-divert.8.es.add


man/po4a/add_es/dpkg-name.1.es.add → man/po/add_es/dpkg-name.1.es.add


man/po4a/add_es/dpkg-scanpackages.1.es.add → man/po/add_es/dpkg-scanpackages.1.es.add


man/po4a/add_es/dpkg-scansources.1.es.add → man/po/add_es/dpkg-scansources.1.es.add


man/po4a/add_es/dpkg-source.1.es.add → man/po/add_es/dpkg-source.1.es.add


man/po4a/add_es/dpkg-split.1.es.add → man/po/add_es/dpkg-split.1.es.add


man/po4a/add_es/dpkg-statoverride.8.es.add → man/po/add_es/dpkg-statoverride.8.es.add


man/po4a/add_es/dpkg.1.es.add → man/po/add_es/dpkg.1.es.add


man/po4a/add_es/dselect.1.es.add → man/po/add_es/dselect.1.es.add


man/po4a/add_es/start-stop-daemon.8.es.add → man/po/add_es/start-stop-daemon.8.es.add


man/po4a/add_es/update-alternatives.8.es.add → man/po/add_es/update-alternatives.8.es.add


man/po4a/add_fr/822-date.1.fr.add → man/po/add_fr/822-date.1.fr.add


man/po4a/add_fr/cleanup-info.8.fr.add → man/po/add_fr/cleanup-info.8.fr.add


man/po4a/add_fr/deb-control.5.fr.add → man/po/add_fr/deb-control.5.fr.add


man/po4a/add_fr/deb.5.fr.add → man/po/add_fr/deb.5.fr.add


man/po4a/add_fr/dpkg-architecture.1.fr.add → man/po/add_fr/dpkg-architecture.1.fr.add


man/po4a/add_fr/dpkg-cfg.5.fr.add → man/po/add_fr/dpkg-cfg.5.fr.add


man/po4a/add_fr/dpkg-checkbuilddeps.1.fr.add → man/po/add_fr/dpkg-checkbuilddeps.1.fr.add


man/po4a/add_fr/dpkg-deb.1.fr.add → man/po/add_fr/dpkg-deb.1.fr.add


man/po4a/add_fr/dpkg-divert.8.fr.add → man/po/add_fr/dpkg-divert.8.fr.add


man/po4a/add_fr/dpkg-name.1.fr.add → man/po/add_fr/dpkg-name.1.fr.add


man/po4a/add_fr/dpkg-query.1.fr.add → man/po/add_fr/dpkg-query.1.fr.add


man/po4a/add_fr/dpkg-scanpackages.1.fr.add → man/po/add_fr/dpkg-scanpackages.1.fr.add


man/po4a/add_fr/dpkg-scansources.1.fr.add → man/po/add_fr/dpkg-scansources.1.fr.add


man/po4a/add_fr/dpkg-source.1.fr.add → man/po/add_fr/dpkg-source.1.fr.add


man/po4a/add_fr/dpkg-split.1.fr.add → man/po/add_fr/dpkg-split.1.fr.add


man/po4a/add_fr/dpkg-statoverride.8.fr.add → man/po/add_fr/dpkg-statoverride.8.fr.add


man/po4a/add_fr/dpkg.1.fr.add → man/po/add_fr/dpkg.1.fr.add


man/po4a/add_fr/dpkg.cfg.5.fr.add → man/po/add_fr/dpkg.cfg.5.fr.add


man/po4a/add_fr/install-info.8.fr.add → man/po/add_fr/install-info.8.fr.add


man/po4a/add_fr/start-stop-daemon.8.fr.add → man/po/add_fr/start-stop-daemon.8.fr.add


man/po4a/add_fr/update-alternatives.8.fr.add → man/po/add_fr/update-alternatives.8.fr.add


man/po4a/add_hu/deb-control.5.hu.add → man/po/add_hu/deb-control.5.hu.add


man/po4a/add_hu/dpkg-deb.1.hu.add → man/po/add_hu/dpkg-deb.1.hu.add


man/po4a/add_hu/dpkg.cfg.5.hu.add → man/po/add_hu/dpkg.cfg.5.hu.add


man/po4a/add_hu/dselect.cfg.5.hu.add → man/po/add_hu/dselect.cfg.5.hu.add


+ 0 - 0
man/po4a/add_ja/822-date.1.ja.add


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików