summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoradmin (alphacentauri) <default@mx.buetow.org>2017-02-12 13:14:07 +0000
committeradmin (alphacentauri) <default@mx.buetow.org>2017-02-12 13:14:07 +0000
commit3e65cce0ec33e290cf45b7cc9e661977bb225810 (patch)
treeef49259a7ccdeb9525c0600091d8cacee3b9876e /Makefile
parent2f299cb1293cafd7dcdf2e574ecc624540d7feff (diff)
parent2b40c40f32cecf6c3a82a0e88c0459084e73011a (diff)
Merge remote-tracking branch 'remotes/github/hosts' into hosts
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