Makefile
author Cameron McCormack <cam@mcc.id.au>
Tue, 26 Aug 2014 00:24:26 +1000
changeset 701 1031fbd25ff0
parent 664 6166e5cb5b57
permissions -rw-r--r--
Fix markup errors.
664
6166e5cb5b57 Don't die if we can't check that svg2-tools is up-to-date.
Cameron McCormack <cam@mcc.id.au>
parents: 482
diff changeset
     1
# Makefile for SVG 2.
1
cbc4f3f708e9 Seed the SVG 2 repository with the current SVG 1.1 2nd Edition files. See the following lines for more. r=WG.
SVG WG <www-svg@w3.org>
parents:
diff changeset
     2
95
004632f2af54 Check that the svg2-tools checkout is up-to-date before building.
Cameron McCormack <cam@mcc.id.au>
parents: 26
diff changeset
     3
all-with-tools-check : tools-check all
004632f2af54 Check that the svg2-tools checkout is up-to-date before building.
Cameron McCormack <cam@mcc.id.au>
parents: 26
diff changeset
     4
482
1e217e22fcc2 Add make rule for all specs.
Cameron McCormack <cam@mcc.id.au>
parents: 462
diff changeset
     5
all-specs : all
1e217e22fcc2 Add make rule for all specs.
Cameron McCormack <cam@mcc.id.au>
parents: 462
diff changeset
     6
	@for spec in specs/*; do [ -f $$spec/Makefile ] && make -C $$spec/ all; done
1e217e22fcc2 Add make rule for all specs.
Cameron McCormack <cam@mcc.id.au>
parents: 462
diff changeset
     7
95
004632f2af54 Check that the svg2-tools checkout is up-to-date before building.
Cameron McCormack <cam@mcc.id.au>
parents: 26
diff changeset
     8
tools-check :
664
6166e5cb5b57 Don't die if we can't check that svg2-tools is up-to-date.
Cameron McCormack <cam@mcc.id.au>
parents: 482
diff changeset
     9
	@bash -c "REMOTE_REV=$$(hg id -i http://svgwg.org/hg/svg2-tools 2>/dev/null); [ \$$? = 0 -a \"\$$REMOTE_REV\" != \"\" ] || exit 0; LOCAL_REV=$$(hg id -i ../svg2-tools); [ \"\$$LOCAL_REV\" = \"\$$REMOTE_REV\" -o \"\$$LOCAL_REV\" = \"\$$REMOTE_REV\"+ ] || (echo \"You must update your svg2-tools repository! (Remote repository has revision \$$REMOTE_REV, but you are at \$$LOCAL_REV.)\"; exit 1)"
95
004632f2af54 Check that the svg2-tools checkout is up-to-date before building.
Cameron McCormack <cam@mcc.id.au>
parents: 26
diff changeset
    10
1
cbc4f3f708e9 Seed the SVG 2 repository with the current SVG 1.1 2nd Edition files. See the following lines for more. r=WG.
SVG WG <www-svg@w3.org>
parents:
diff changeset
    11
all :
2
7287a5350439 Make the necessary changes to get the new 'svg2-tools' repo build process working, and stop generating files in 'master' (generate them in 'build' instead). r=WG.
Jonathan Watt <jwatt@mozilla.com>
parents: 1
diff changeset
    12
	@../svg2-tools/build.py
1
cbc4f3f708e9 Seed the SVG 2 repository with the current SVG 1.1 2nd Edition files. See the following lines for more. r=WG.
SVG WG <www-svg@w3.org>
parents:
diff changeset
    13
cbc4f3f708e9 Seed the SVG 2 repository with the current SVG 1.1 2nd Edition files. See the following lines for more. r=WG.
SVG WG <www-svg@w3.org>
parents:
diff changeset
    14
pdf : all
2
7287a5350439 Make the necessary changes to get the new 'svg2-tools' repo build process working, and stop generating files in 'master' (generate them in 'build' instead). r=WG.
Jonathan Watt <jwatt@mozilla.com>
parents: 1
diff changeset
    15
	prince --no-author-style -s build/publish/style/svg-style.css -s http://www.w3.org/StyleSheets/TR/W3C-REC -s build/publish/style/svg-style-print.css build/publish/single-page.html -o build/publish/single-page.pdf
1
cbc4f3f708e9 Seed the SVG 2 repository with the current SVG 1.1 2nd Edition files. See the following lines for more. r=WG.
SVG WG <www-svg@w3.org>
parents:
diff changeset
    16
cbc4f3f708e9 Seed the SVG 2 repository with the current SVG 1.1 2nd Edition files. See the following lines for more. r=WG.
SVG WG <www-svg@w3.org>
parents:
diff changeset
    17
ZIPDIR=REC-SVG11-20110802
cbc4f3f708e9 Seed the SVG 2 repository with the current SVG 1.1 2nd Edition files. See the following lines for more. r=WG.
SVG WG <www-svg@w3.org>
parents:
diff changeset
    18
cbc4f3f708e9 Seed the SVG 2 repository with the current SVG 1.1 2nd Edition files. See the following lines for more. r=WG.
SVG WG <www-svg@w3.org>
parents:
diff changeset
    19
zip : all
2
7287a5350439 Make the necessary changes to get the new 'svg2-tools' repo build process working, and stop generating files in 'master' (generate them in 'build' instead). r=WG.
Jonathan Watt <jwatt@mozilla.com>
parents: 1
diff changeset
    20
	rm -rf build/publish/$(ZIPDIR) build/publish/$(ZIPDIR).zip
7287a5350439 Make the necessary changes to get the new 'svg2-tools' repo build process working, and stop generating files in 'master' (generate them in 'build' instead). r=WG.
Jonathan Watt <jwatt@mozilla.com>
parents: 1
diff changeset
    21
	mkdir -p build/publish/$(ZIPDIR)/style
7287a5350439 Make the necessary changes to get the new 'svg2-tools' repo build process working, and stop generating files in 'master' (generate them in 'build' instead). r=WG.
Jonathan Watt <jwatt@mozilla.com>
parents: 1
diff changeset
    22
	cp build/publish/*.html build/publish/$(ZIPDIR)
7287a5350439 Make the necessary changes to get the new 'svg2-tools' repo build process working, and stop generating files in 'master' (generate them in 'build' instead). r=WG.
Jonathan Watt <jwatt@mozilla.com>
parents: 1
diff changeset
    23
	rm build/publish/$(ZIPDIR)/single-page.html
7287a5350439 Make the necessary changes to get the new 'svg2-tools' repo build process working, and stop generating files in 'master' (generate them in 'build' instead). r=WG.
Jonathan Watt <jwatt@mozilla.com>
parents: 1
diff changeset
    24
	cp build/publish/style/svg-style.css build/publish/$(ZIPDIR)/style/
7287a5350439 Make the necessary changes to get the new 'svg2-tools' repo build process working, and stop generating files in 'master' (generate them in 'build' instead). r=WG.
Jonathan Watt <jwatt@mozilla.com>
parents: 1
diff changeset
    25
	wget -O build/publish/$(ZIPDIR)/style/W3C-REC.css http://www.w3.org/StyleSheets/TR/W3C-REC.css
7287a5350439 Make the necessary changes to get the new 'svg2-tools' repo build process working, and stop generating files in 'master' (generate them in 'build' instead). r=WG.
Jonathan Watt <jwatt@mozilla.com>
parents: 1
diff changeset
    26
	wget -O build/publish/$(ZIPDIR)/style/logo-REC.png http://www.w3.org/StyleSheets/TR/logo-REC.png
7287a5350439 Make the necessary changes to get the new 'svg2-tools' repo build process working, and stop generating files in 'master' (generate them in 'build' instead). r=WG.
Jonathan Watt <jwatt@mozilla.com>
parents: 1
diff changeset
    27
	perl -i -pe 's{http://www.w3.org/StyleSheets/TR/logo-REC}{logo-REC.png}' build/publish/$(ZIPDIR)/style/W3C-REC.css
7287a5350439 Make the necessary changes to get the new 'svg2-tools' repo build process working, and stop generating files in 'master' (generate them in 'build' instead). r=WG.
Jonathan Watt <jwatt@mozilla.com>
parents: 1
diff changeset
    28
	perl -i -pe 's{http://www.w3.org/StyleSheets/TR/W3C-REC}{style/W3C-REC.css}' build/publish/$(ZIPDIR)/*.html
7287a5350439 Make the necessary changes to get the new 'svg2-tools' repo build process working, and stop generating files in 'master' (generate them in 'build' instead). r=WG.
Jonathan Watt <jwatt@mozilla.com>
parents: 1
diff changeset
    29
	cp -a build/publish/images build/publish/$(ZIPDIR)/
7287a5350439 Make the necessary changes to get the new 'svg2-tools' repo build process working, and stop generating files in 'master' (generate them in 'build' instead). r=WG.
Jonathan Watt <jwatt@mozilla.com>
parents: 1
diff changeset
    30
	find build/publish/$(ZIPDIR)/images/ -name CVS | xargs rm -rf
7287a5350439 Make the necessary changes to get the new 'svg2-tools' repo build process working, and stop generating files in 'master' (generate them in 'build' instead). r=WG.
Jonathan Watt <jwatt@mozilla.com>
parents: 1
diff changeset
    31
	cd build/publish/ && zip -r $(ZIPDIR).zip $(ZIPDIR)
7287a5350439 Make the necessary changes to get the new 'svg2-tools' repo build process working, and stop generating files in 'master' (generate them in 'build' instead). r=WG.
Jonathan Watt <jwatt@mozilla.com>
parents: 1
diff changeset
    32
	rm -rf build/publish/$(ZIPDIR)
1
cbc4f3f708e9 Seed the SVG 2 repository with the current SVG 1.1 2nd Edition files. See the following lines for more. r=WG.
SVG WG <www-svg@w3.org>
parents:
diff changeset
    33
cbc4f3f708e9 Seed the SVG 2 repository with the current SVG 1.1 2nd Edition files. See the following lines for more. r=WG.
SVG WG <www-svg@w3.org>
parents:
diff changeset
    34
clean :
2
7287a5350439 Make the necessary changes to get the new 'svg2-tools' repo build process working, and stop generating files in 'master' (generate them in 'build' instead). r=WG.
Jonathan Watt <jwatt@mozilla.com>
parents: 1
diff changeset
    35
	@../svg2-tools/build.py -c
26
ff7b561adebb Whitespace change to test mirroring.
Michael[tm] Smith <mike@w3.org>
parents: 2
diff changeset
    36