forked from w3c/svgwg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (24 loc) · 1.55 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Makefile for SVG 2.
TOOLS=./tools
include tools/spec.mk
all-specs : all
@for spec in specs/*; do if [ -f $$spec/Makefile -a $$spec != 'specs/template' ]; then echo && echo "Building $$spec" && make -s -C $$spec/ all; fi; done
pdf : all
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
stabilize-issues-all-specs : stabilize-issues
@for spec in specs/*; do if [ -f $$spec/Makefile -a $$spec != 'specs/template' -a $$spec != 'specs/svg-native' ]; then make -s -C $$spec/ stabilize-issues; fi; done
ZIPDIR=REC-SVG11-20110802
zip : all
rm -rf build/publish/$(ZIPDIR) build/publish/$(ZIPDIR).zip
mkdir -p build/publish/$(ZIPDIR)/style
cp build/publish/*.html build/publish/$(ZIPDIR)
rm build/publish/$(ZIPDIR)/single-page.html
cp build/publish/style/svg-style.css build/publish/$(ZIPDIR)/style/
wget -O build/publish/$(ZIPDIR)/style/W3C-REC.css http://www.w3.org/StyleSheets/TR/W3C-REC.css
wget -O build/publish/$(ZIPDIR)/style/logo-REC.png http://www.w3.org/StyleSheets/TR/logo-REC.png
perl -i -pe 's{http://www.w3.org/StyleSheets/TR/logo-REC}{logo-REC.png}' build/publish/$(ZIPDIR)/style/W3C-REC.css
perl -i -pe 's{http://www.w3.org/StyleSheets/TR/W3C-REC}{style/W3C-REC.css}' build/publish/$(ZIPDIR)/*.html
cp -a build/publish/images build/publish/$(ZIPDIR)/
find build/publish/$(ZIPDIR)/images/ -name CVS | xargs rm -rf
cd build/publish/ && zip -r $(ZIPDIR).zip $(ZIPDIR)
rm -rf build/publish/$(ZIPDIR)