summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-01 16:40:06 +0000
committerAndrei Karas <akaras@inbox.ru>2016-07-01 16:40:06 +0000
commit7e3ae24e66c1ecff0cde0fe9b7ef7142d68f78ca (patch)
tree135eadcc38ba8629aea1bca24e07d37b3d3dc072
parentbded7cfff03d09142138dd73267b6bb0becfe726 (diff)
parentaf8aaae894b8527c7c86f9a35c88cbdc9b0db9e9 (diff)
downloadclientdata-7e3ae24e66c1ecff0cde0fe9b7ef7142d68f78ca.tar.gz
clientdata-7e3ae24e66c1ecff0cde0fe9b7ef7142d68f78ca.tar.bz2
clientdata-7e3ae24e66c1ecff0cde0fe9b7ef7142d68f78ca.tar.xz
clientdata-7e3ae24e66c1ecff0cde0fe9b7ef7142d68f78ca.zip
Merge branch 'makefile' into 'master'
Add make file to perform client-data functions See merge request !3
-rw-r--r--.gitignore3
-rw-r--r--Makefile42
2 files changed, 44 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 87695227..90813884 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,4 +4,5 @@
/music
testxml.py
*~
-*.DS_Store \ No newline at end of file
+*.DS_Store
+out/*
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..1d07587c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,42 @@
+# for pipefail
+SHELL=/bin/bash
+.SECONDARY:
+.DELETE_ON_ERROR:
+
+XSLTPROC = xsltproc
+
+all: about-server check
+
+about-server:
+ @$(XSLTPROC) -o help/about-server.txt ../tools/contrib_xsl/about-server.xsl ../tools/contrib_xsl/contributors.xml
+ @echo "The file about-server.txt was created successfully."
+
+wiki:
+ @$(XSLTPROC) ../tools/contrib_xsl/wiki.xsl ../tools/contrib_xsl/contributors.xml | less
+ @echo "You can now place this output in: http://wiki.evolonline.org/contributors"
+
+check: check-xml check-png testxml
+
+PNGS = $(shell find . -type f -name "*.png")
+check-png: $(patsubst %.png,out/%.png.ok,${PNGS})
+ find . -name '*.png.ok' -delete
+ find . -name '*.png.out' -delete
+ find ./out/ -type d -delete
+out/%.png.ok: out/%.png.out
+ grep '32-bit RGB+alpha, non-interlaced, ' $< > $@
+out/%.png.out: %.png
+ mkdir -p ${@D}
+ set -e -o pipefail; \
+ pngcheck $< > $@
+
+check-xml:
+ cd ../tools/testxml/ ; ./xsdcheck.sh ; cat errors.txt
+
+testxml:
+ cd ../tools/testxml/ ; ./testxml.py
+
+updates:
+ cd ../tools/update/ ; ./createnew.sh
+
+music:
+ cd ../tools/update/ ; ./create_music.sh