~ubuntu-branches/ubuntu/precise/xorg/precise

« back to all changes in this revision

Viewing changes to xsf-docs/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen, Bryce Harrington, Timo Aaltonen
  • Date: 2011-06-14 15:39:40 UTC
  • mfrom: (6.3.18 sid)
  • Revision ID: james.westby@ubuntu.com-20110614153940-b9i0fr1v2kchiozh
Tags: 1:7.6+7ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add apport hook
  - Demote xfonts-{75DPI,100DPI} to Suggests. Demote xfonts-scalable to
    Recommends.
  - debian/local/Xsession:
    Truncate xsession-errors on startup if too big
  - debian/local/Xsession.d/20x11-common_process-args:
    Add support for session command containing args.
  - debian/local/Xsession.d/60x11-common_localhost:
    Authorise all processes running with the user's credentials to connect
    to the server.
  - debian/rules, debian/control:
    Add dependencies on x11-common, and symlink /usr/share/doc directories
    of all packages to x11-common's.
  - debian/scripts/vars.*:
    + Don't drop wacom from input-all.
    + Add -vmmouse to input-all for amd64 and i386.
    + Add -qxl to video-all for amd64 and i386.
    + Add -geode to video-all for i386.
    + Drop video drivers that are likely irrelevant for ARM.
  - debian/xserver-xorg.postinst.in: Also migrate users from psb → vesa.

[ Bryce Harrington ]
* apport/source_xorg.py:
  - Move Failsafe-X out of the xorg package to xdiagnose
    (LP: #480744)
  - Simplify answers for bug reporters filing post-release reports.
    (LP: #778758)
  - Remove attach_drm_info().  This is useful info but we use it very
    infrequently, and it is already available in other log files.  But the
    call makes bug reports a bit cluttered since it adds a lot of lines to
    the report itself.

[ Timo Aaltonen ]
* rules: A stampfile generation was commented out by mistake, uncomment
  it.
* Rework the x11-common.{postinst,postrm,preinst} failsafe conffile
  handling, the previous ones added in 1:7.6+4ubuntu1 were wrong too.
* scripts/vars.{amd64,i386,powerpc}: Remove apm, ark, chips, i128, i740,
  rendition, s3virge, tseng, voodoo from xserver-xorg-video-all
  dependencies. They are unmaintained and obsolete.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
mdwn_pages = $(shell find -name '*.mdwn')
4
 
 
5
 
html_pages = $(patsubst %.mdwn,%.html,$(mdwn_pages))
6
 
 
7
 
pdf_files = $(patsubst %.mdwn,%.pdf,$(mdwn_pages))
8
 
 
9
 
txt_files = $(patsubst %.mdwn,%.txt,$(mdwn_pages))
10
 
 
11
 
MDWN_TO_HTML = ./mdwn2html
 
3
txt_files = $(shell find -name '*.txt' -a ! -name '.*.txt')
 
4
 
 
5
html_files = $(patsubst %.txt,%.html,$(txt_files))
 
6
 
 
7
pdf_files = $(patsubst %.txt,%.pdf,$(txt_files))
 
8
 
 
9
TXT_TO_HTML  = asciidoc -a linkcss
12
10
HTML_TO_PDF  = wkhtmltopdf
13
 
HTML_TO_TXT  = w3m -dump
14
11
CSS_FILE     = xsf.css
 
12
ADOC_CSS_FILE= asciidoc-xhtml11.css
 
13
ADOC_JS_FILE = asciidoc-xhtml11.js
15
14
SVG_LOGO     = xsf.svg
16
15
PNG_LOGO     = xsf.png
17
16
 
18
 
all_files = $(html_pages) $(pdf_files) $(txt_files) $(CSS_FILE) $(SVG_LOGO) $(PNG_LOGO)
19
 
 
20
 
all: html pdf txt $(PNG_LOGO)
21
 
 
22
 
html: $(html_pages)
 
17
all_files = $(html_files) $(txt_files) $(CSS_FILE) $(ADOC_CSS_FILE) $(ADOC_JS_FILE) $(SVG_LOGO) $(PNG_LOGO)
 
18
 
 
19
all: html $(PNG_LOGO)
 
20
 
 
21
html: $(html_files)
23
22
 
24
23
pdf: $(pdf_files)
25
24
 
26
 
txt: $(txt_files)
27
 
 
28
 
%.html: %.mdwn $(MDWN_TO_HTML)
29
 
        $(MDWN_TO_HTML) $< $@
30
 
 
31
 
%.pdf: %.html $(CSS_FILE) $(SVG_LOGO)
32
 
        $(HTML_TO_PDF) $< $@
33
 
 
34
 
# Plain markdown is actually more readable than html dumped to plain
35
 
# text (e.g. through w3m):
36
 
%.txt: %.mdwn
37
 
        cp $< $@
 
25
%.html: rel_path=$(shell echo $@|sed 's,[^/],,g;s,/,../,g')
 
26
%.html: link_home=$(shell echo "<a href=\"$(rel_path)index.html\">XSF</a> / ")
 
27
%.html: %.txt
 
28
        @echo " HTML $@"
 
29
        @$(TXT_TO_HTML) -o $@.tmp $<
 
30
        @echo " HOME $@"
 
31
        @if [ $< != index.txt ]; then sed -i 's,<h1>,<h1>$(link_home),' $@.tmp; fi
 
32
        @echo " CSS  $@"
 
33
        @sed -i 's,\(rel="stylesheet" href="\)[^"]*,\1$(rel_path)$(CSS_FILE),' $@.tmp
 
34
        @echo " JS   $@"
 
35
        @sed -i 's,\(type="text/javascript" src="\)[^"]*,\1$(rel_path)$(ADOC_JS_FILE),' $@.tmp
 
36
        @mv $@.tmp $@
 
37
 
 
38
%.pdf: %.html $(CSS_FILE) $(ADOC_CSS_FILE) $(ADOC_JS_FILE) $(SVG_LOGO)
 
39
        @echo " GEN  $@"
 
40
        @$(HTML_TO_PDF) $< $@
38
41
 
39
42
# We usually don't need to run this one, but it's easier to keep both
40
43
# SVN and PNG logos in sync:
41
44
$(PNG_LOGO): $(SVG_LOGO)
42
45
        inkscape $< -e $@
43
46
 
44
 
install: $(all_files)
 
47
install:
45
48
        @if [ -z "$(DESTDIR)" ]; then \
46
49
                echo 'E: DESTDIR is not set, not installing.'; exit 1; \
47
50
        fi
55
58
 
56
59
clean:
57
60
        @echo "Removing all generated files"
58
 
        rm -f $(html_pages) $(pdf_files) $(txt_files)
 
61
        rm -f $(html_files) $(pdf_files)
59
62
 
60
63
 
61
64
.PHONY: clean html pdf all