summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2016-06-30 22:33:14 -0500
committerwushin <pasekei@gmail.com>2016-07-01 11:35:04 -0500
commitaf8aaae894b8527c7c86f9a35c88cbdc9b0db9e9 (patch)
tree27518f71233daa40d7ccda309a4db821d165e30e /Makefile
parent3c08592cd68aa643e954b1034ef57da2ccb9601d (diff)
downloadclientdata-af8aaae894b8527c7c86f9a35c88cbdc9b0db9e9.tar.gz
clientdata-af8aaae894b8527c7c86f9a35c88cbdc9b0db9e9.tar.bz2
clientdata-af8aaae894b8527c7c86f9a35c88cbdc9b0db9e9.tar.xz
clientdata-af8aaae894b8527c7c86f9a35c88cbdc9b0db9e9.zip
Add make file to perform client-data functions
- make all (everything but wiki) - make about-server - make wiki - make updates - make music - make checks: check-png check-xml testxml
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile42
1 files changed, 42 insertions, 0 deletions
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