summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Buetow (centauri) <puppet@mx.buetow.org>2015-08-09 10:53:07 +0100
committerPaul Buetow (centauri) <puppet@mx.buetow.org>2015-08-09 10:53:07 +0100
commit2b40c40f32cecf6c3a82a0e88c0459084e73011a (patch)
treeb1089baaafb381f1693aceeaa65065bf3334eee3 /Makefile
parent7397ede1a0805f3bc0a14f04b6e4b4b38db168e6 (diff)
parent2fab3867d291514b6666a8bd582fe8ae4896a1c0 (diff)
Merge
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 18 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 46933cd..624f25d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,18 @@
-all: perltidy
-perltidy:
- find . -name \*.fpl | xargs perltidy -i=2 -b
- find . -name \*.pl | xargs perltidy -i=2 -b
- find . -name \*.pm | xargs perltidy -i=2 -b
- find . -name \*.bak | xargs rm -f
-todo:
- grep -R TODO . | grep -E -v '(\.git|Makefile)'
+all: quick push
+xml: check format push
+check:
+ @echo Checking for valid XML
+ find . -name \*.xml -type f | while read xml; do \
+ xmllint "$$xml" >/dev/null; \
+ done
+format:
+ @echo Re-Formatting XML files
+ find . -name \*.xml -type f | while read xml; do \
+ xmllint --format "$$xml" >"$$xml.tmp" && \
+ mv "$$xml.tmp" "$$xml"; \
+ done
+ git commit -a -m 'Reformatted XML' || exit 0
+quick:
+ git commit -a -m 'Quick commit' || exit 0
+push:
+ git push origin hosts