~ubuntu-branches/ubuntu/vivid/aptitude/vivid

« back to all changes in this revision

Viewing changes to .pc/0003-Uniformly-use-srcdir-when-grabbing-files-for-install.patch/doc/ja/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2011-06-22 12:32:56 UTC
  • mfrom: (1.8.6 sid)
  • Revision ID: james.westby@ubuntu.com-20110622123256-8aox9w9ch3x72dci
Tags: 0.6.4-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - debian/05aptitude: never autoremove kernels
  - drop aptitude-doc to Suggests
  - 03_branding.dpatch: ubuntu branding
  - 04_changelog.dpatch: take changelogs from changelogs.ubuntu.com
  - 09_ubuntu_fortify_source.dpatch: Suppress a number of warnings (turned
    into errors by -Werror) triggered by Ubuntu's default of
    -D_FORTIFY_SOURCE=2.
  - 11_ubuntu_uses_sudo.dpatch: fix status line of 'Become root' menu entry
    to not refer to su.
  - 12_point_manpage_to_doc_package.dpatch: point Finnish manpage to the
    correct place for further info
  - 14_html2text_preferred.dpatch: switch back to html2text in favor of
    elinks, since html2text is in main and elinks isn't.
* dropped 01_intltool_update.dpatch
* updated 15_ftbfs_new_apt

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# automake doesn't play nicely with DocBook :(
2
 
 
3
 
SUBDIRS=images
4
 
EXTRA_DIST=aptitude-html-ja.xsl aptitude-man-ja.xsl
5
 
 
6
 
LANGCODE=ja
7
 
MANPAGE=aptitude.$(LANGCODE).8
8
 
# Automake automagically distributes README without asking..
9
 
README=README.$(LANGCODE)
10
 
XMLSOURCES=aptitude.xml manpage.xml
11
 
PERCENT_TRANSLATED=30
12
 
MANPAGE_PERCENT_TRANSLATED=29
13
 
 
14
 
HTML2TEXT=$(srcdir)/../html-to-text
15
 
 
16
 
# Put documentation in /usr/share/doc/aptitude (by default)
17
 
docdir=$(datadir)/doc/$(PACKAGE)
18
 
localemandir=$(mandir)/$(LANGCODE)
19
 
htmldir=$(DESTDIR)$(docdir)/html/$(LANGCODE)
20
 
 
21
 
IMAGES = $(wildcard images/*.png)
22
 
 
23
 
if USE_PO4A
24
 
all-local: doc-stamp
25
 
else
26
 
all-local:
27
 
endif
28
 
 
29
 
clean-local:
30
 
        -rm -fr output-html/ output-txt/ output-man/
31
 
        -rm -f doc-stamp doc-css-stamp doc-html-stamp doc-txt-stamp doc-man-stamp
32
 
        -rm -fr $(MANPAGE) $(README)
33
 
        -rm -f $(XMLSOURCES)
34
 
 
35
 
install-data-hook:
36
 
        $(mkinstalldirs) $(DESTDIR)$(localemandir)/man8
37
 
        $(INSTALL_DATA) $(MANPAGE) $(DESTDIR)$(localemandir)/man8/aptitude.8
38
 
 
39
 
        $(mkinstalldirs) $(htmldir)/images
40
 
        $(INSTALL_DATA) output-html/*.html output-html/*.css $(htmldir)
41
 
        $(INSTALL_DATA) output-html/images/* $(htmldir)/images
42
 
 
43
 
#       $(INSTALL_DATA) $(README) $(DESTDIR)$(pkgdatadir)/$(README)
44
 
 
45
 
doc-stamp: doc-html-stamp doc-css-stamp $(README) $(MANPAGE)
46
 
        touch doc-stamp
47
 
 
48
 
aptitude.xml: $(srcdir)/../en/aptitude.xml $(srcdir)/../po4a/po/$(LANGCODE).po 
49
 
        po4a-translate -M utf-8 -f docbook -m $(srcdir)/../en/aptitude.xml -p $(srcdir)/../po4a/po/$(LANGCODE).po -l aptitude.xml -k $(PERCENT_TRANSLATED)
50
 
 
51
 
manpage.xml: $(srcdir)/../en/manpage.xml $(srcdir)/../po4a/po/$(LANGCODE).po
52
 
        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
53
 
 
54
 
db2latex: doc-db2latex-stamp
55
 
 
56
 
$(MANPAGE): $(XMLSOURCES) $(srcdir)/aptitude-man-$(LANGCODE).xsl $(srcdir)/../aptitude-man.xsl
57
 
        -rm -fr output-man
58
 
        xsltproc -o output-man/aptitude.8 $(srcdir)/aptitude-man-$(LANGCODE).xsl aptitude.xml
59
 
        mv output-man/aptitude.8 $(MANPAGE)
60
 
 
61
 
$(README): $(XMLSOURCES) $(srcdir)/../aptitude-txt.xsl $(srcdir)/../aptitude-common.xsl
62
 
        -rm -fr output-txt/
63
 
        xsltproc -o output-txt/index.html $(srcdir)/../aptitude-txt.xsl aptitude.xml
64
 
        $(HTML2TEXT) output-txt/index.html > $(README)
65
 
 
66
 
doc-db2latex-stamp: output-db2latex/aptitude.tex $(IMAGES)
67
 
        ln -s ../images output-db2latex/images
68
 
# Run pdflatex 3 times just to be extra sure that it converges.
69
 
        cd output-db2latex && pdflatex -interaction nonstopmode aptitude.tex && pdflatex -interaction nonstopmode aptitude.tex && pdflatex -interaction nonstopmode aptitude.tex
70
 
        touch doc-db2latex-stamp
71
 
 
72
 
output-db2latex/aptitude.tex: $(XMLSOURCES) $(srcdir)/../aptitude-db2latex.xsl $(srcdir)/../aptitude-common.xsl
73
 
        -rm -fr output-db2latex
74
 
        mkdir output-db2latex
75
 
        xsltproc -o output-db2latex/aptitude.tex $(srcdir)/../aptitude-db2latex.xsl aptitude.xml
76
 
 
77
 
 
78
 
doc-css-stamp: doc-html-stamp $(srcdir)/../aptitude.css
79
 
        rm -f output-html/aptitude.css
80
 
        cp $(srcdir)/../aptitude.css output-html/
81
 
        touch doc-css-stamp
82
 
 
83
 
doc-html-stamp: $(XMLSOURCES) aptitude-html-$(LANGCODE).xsl $(srcdir)/../aptitude-common.xsl $(IMAGES)
84
 
        -rm -fr output-html/
85
 
 
86
 
        xsltproc -o output-html/ $(srcdir)/aptitude-html-$(LANGCODE).xsl aptitude.xml
87
 
 
88
 
        mkdir output-html/images/
89
 
        ln -f $(srcdir)/images/*.png output-html/images/
90
 
        for x in caution important note tip warning; do ln -s /usr/share/xml/docbook/stylesheet/nwalsh/images/$$x.png output-html/images/; done
91
 
        for x in home next prev up; do ln -s /usr/share/xml/docbook/stylesheet/nwalsh/images/$$x.gif output-html/images/; done
92
 
 
93
 
        touch doc-html-stamp