diff options
author | Daniel Hartwig <mandyke@gmail.com> | 2012-05-28 14:53:11 +0800 |
---|---|---|
committer | Daniel Hartwig <mandyke@gmail.com> | 2012-05-28 14:53:11 +0800 |
commit | 0e9a704564d56e097d0f68149240845230ac8b7f (patch) | |
tree | 071cd06ec5510632c919cd24e26a629df4f30375 | |
parent | 729b552c19ff1e11de38a485754284f629fdf076 (diff) | |
download | aptitude-0e9a704564d56e097d0f68149240845230ac8b7f.tar.gz |
Integrate Italian docs with build system
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | doc/it/Makefile.am | 80 | ||||
-rw-r--r-- | doc/it/images/Makefile.am | 12 | ||||
-rw-r--r-- | doc/po4a/po/Makefile.am | 2 | ||||
-rw-r--r-- | doc/po4a/po/it.po (renamed from doc/it/it.po) | 0 | ||||
-rw-r--r-- | doc/po4a/po4a.cfg | 5 |
6 files changed, 98 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 875367e8..2fe1d2e2 100644 --- a/configure.ac +++ b/configure.ac @@ -944,6 +944,8 @@ AC_CONFIG_FILES([ doc/fi/images/Makefile doc/fr/Makefile doc/fr/images/Makefile + doc/it/Makefile + doc/it/images/Makefile doc/ja/Makefile doc/ja/images/Makefile doc/pl/Makefile diff --git a/doc/it/Makefile.am b/doc/it/Makefile.am new file mode 100644 index 00000000..7bd69384 --- /dev/null +++ b/doc/it/Makefile.am @@ -0,0 +1,80 @@ +# automake doesn't play nicely with DocBook :( + +SUBDIRS=images + +EXTRA_DIST= +LANGCODE=it +MANPAGE=aptitude.$(LANGCODE).8 +# How much of the manual is actually translated. +PERCENT_TRANSLATED=80 +MANPAGE_PERCENT_TRANSLATED=80 + +IMAGES=$(wildcard $(srcdir)/images/*.png) + +HTML2TEXT=$(srcdir)/../html-to-text + +## Put documentation in /usr/share/doc/aptitude (by default) +#docdir=$(datadir)/doc/$(PACKAGE) + +localemandir=$(mandir)/$(LANGCODE) + +# Automake automagically distributes README without asking +README=README.$(LANGCODE) + +if USE_PO4A +all-local: doc-stamp +else +all-local: +endif + +clean-local: + -rm -fr output-html/ output-txt/ output-man/ + -rm -f doc-stamp doc-css-stamp doc-html-stamp doc-txt-stamp doc-man-stamp + -rm -fr $(MANPAGE) $(README) *.tmp + -rm -fr aptitude.xml manpage.xml + +install-data-hook: + $(mkinstalldirs) $(DESTDIR)$(localemandir)/man8 + $(INSTALL_DATA) $(MANPAGE) $(DESTDIR)$(localemandir)/man8/aptitude.8 + $(mkinstalldirs) $(DESTDIR)$(docdir)/html/$(LANGCODE)/images + $(INSTALL_DATA) output-html/*.html output-html/*.css $(DESTDIR)$(docdir)/html/$(LANGCODE) + $(INSTALL_DATA) output-html/images/* $(DESTDIR)$(docdir)/html/$(LANGCODE)/images + + $(mkinstalldirs) $(DESTDIR)$(pkgdatadir) + $(INSTALL_DATA) README.$(LANGCODE) $(DESTDIR)$(pkgdatadir)/README.$(LANGCODE) + +doc-stamp: doc-html-stamp doc-css-stamp $(README) $(MANPAGE) + touch doc-stamp + +aptitude.xml: $(srcdir)/../en/aptitude.xml $(srcdir)/../po4a/po/$(LANGCODE).po + po4a-translate -k $(PERCENT_TRANSLATED) -M utf-8 -f docbook -m $(srcdir)/../en/aptitude.xml -p $(srcdir)/../po4a/po/$(LANGCODE).po -l aptitude.xml + +manpage.xml: $(srcdir)/../en/manpage.xml $(srcdir)/../po4a/po/$(LANGCODE).po + po4a-translate -k $(MANPAGE_PERCENT_TRANSLATED) -M utf-8 -f docbook -m $(srcdir)/../en/manpage.xml -p $(srcdir)/../po4a/po/$(LANGCODE).po -l manpage.xml + +$(MANPAGE): aptitude.xml manpage.xml $(srcdir)/../aptitude-man.xsl + -rm -fr output-man + xsltproc -o output-man/aptitude.8 $(srcdir)/../aptitude-man.xsl aptitude.xml + mv output-man/aptitude.8 $(MANPAGE) + +$(README): aptitude.xml manpage.xml $(srcdir)/../aptitude-txt.xsl $(srcdir)/../aptitude-common.xsl + -rm -fr output-txt/ + xsltproc -o output-txt/index.html $(srcdir)/../aptitude-txt.xsl aptitude.xml + $(HTML2TEXT) output-txt/index.html > $(README) + +doc-css-stamp: doc-html-stamp $(srcdir)/../aptitude.css + rm -f output-html/aptitude.css + cp $(srcdir)/../aptitude.css output-html/ + touch doc-css-stamp + +doc-html-stamp: aptitude.xml manpage.xml $(srcdir)/../aptitude-html.xsl $(srcdir)/../aptitude-common.xsl $(IMAGES) + -rm -fr output-html/ + + xsltproc -o output-html/ $(srcdir)/../aptitude-html.xsl aptitude.xml + + mkdir output-html/images/ + ln -f $(srcdir)/images/*.png output-html/images/ + for x in caution important note tip warning; do ln -s /usr/share/xml/docbook/stylesheet/nwalsh/images/$$x.png output-html/images/; done + for x in home next prev up; do ln -s /usr/share/xml/docbook/stylesheet/nwalsh/images/$$x.gif output-html/images/; done + + touch doc-html-stamp diff --git a/doc/it/images/Makefile.am b/doc/it/images/Makefile.am new file mode 100644 index 00000000..1e10d49b --- /dev/null +++ b/doc/it/images/Makefile.am @@ -0,0 +1,12 @@ +EXTRA_DIST=become-root-snapshot.png broken-snapshot.png \ + expand-once-snapshot.png expand-thrice-snapshot.png \ + expand-twice-snapshot.png info-snapshot.png install-snapshot.png \ + limit-result-snapshot.png limit-snapshot.png menu-snapshot.png \ + mine-snapshot2.png mine-snapshot3.png mine-snapshot4.png \ + mine-snapshot5.png mine-snapshot.png preview-snapshot.png \ + safety-cost-level-diagram.png search-snapshot.png \ + solution-explanation-snapshot.png solution-reject-and-approve-snapshot.png \ + solution-screen-snapshot2.png solution-screen-snapshot3.png \ + solution-screen-snapshot4.png solution-screen-snapshot5.png \ + solution-screen-snapshot.png solution-story-snapshot.png \ + start-snapshot.png trust-snapshot.png views-tab-bar.png diff --git a/doc/po4a/po/Makefile.am b/doc/po4a/po/Makefile.am index a36a8ba3..2ae005b7 100644 --- a/doc/po4a/po/Makefile.am +++ b/doc/po4a/po/Makefile.am @@ -1,4 +1,4 @@ -EXTRA_DIST=de.po es.po fr.po ja.po pl.po +EXTRA_DIST=de.po es.po fr.po it.po ja.po pl.po clean-generic: rm -f *~ diff --git a/doc/it/it.po b/doc/po4a/po/it.po index 50862a9e..50862a9e 100644 --- a/doc/it/it.po +++ b/doc/po4a/po/it.po diff --git a/doc/po4a/po4a.cfg b/doc/po4a/po4a.cfg index 167f4487..1d7fa77c 100644 --- a/doc/po4a/po4a.cfg +++ b/doc/po4a/po4a.cfg @@ -1,11 +1,12 @@ -[po4a_paths] po4a/po/aptitude.pot de:po4a/po/de.po es:po4a/po/es.po fr:po4a/po/fr.po ja:po4a/po/ja.po pl:po4a/po/pl.po +[po4a_paths] po4a/po/aptitude.pot de:po4a/po/de.po es:po4a/po/es.po fr:po4a/po/fr.po it:po4a/it/it.pl ja:po4a/po/ja.po pl:po4a/po/pl.po -[type: docbook] en/aptitude.xml de:de/aptitude.xml es:es/aptitude.xml fr:fr/aptitude.xml ja:ja/aptitude.xml pl:pl/aptitude.xml +[type: docbook] en/aptitude.xml de:de/aptitude.xml es:es/aptitude.xml fr:fr/aptitude.xml it:it/aptitude.xml ja:ja/aptitude.xml pl:pl/aptitude.xml [type: docbook] en/manpage.xml \ de:de/manpage.xml \ es:es/manpage.xml \ fr:fr/manpage.xml \ + it:it/manpage.xml \ ja:ja/manpage.xml \ pl:pl/manpage.xml \ add_de:po4a/add_de/addendum.1.de \ |