summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSaulc <lucas@debian>2018-01-13 19:41:26 +0100
committerSaulc <lucas@debian>2018-01-13 19:41:26 +0100
commit4c4f4be30bae96e6cd943de326b1a4b1b841dcd4 (patch)
treea94e0a063e5df2a9f7f84f720982a3bca0c0cf6d /Makefile
downloadclientdata-4c4f4be30bae96e6cd943de326b1a4b1b841dcd4.tar.gz
clientdata-4c4f4be30bae96e6cd943de326b1a4b1b841dcd4.tar.bz2
clientdata-4c4f4be30bae96e6cd943de326b1a4b1b841dcd4.tar.xz
clientdata-4c4f4be30bae96e6cd943de326b1a4b1b841dcd4.zip
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..088472f6
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,48 @@
+# 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 all
+
+updates:
+ cd ../tools/update/ ; ./createnew.sh
+
+music:
+ cd ../tools/update/ ; ./create_music.sh
+
+license:
+ cd ../tools/licensecheck/ ; ./clientdata.sh
+
+icc:
+ cd ../tools/imagescheck/ ; ./icccheck.sh