summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index c446424..c394678 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-all: check format git
+all: check format push
check:
@echo Checking for valid XML
find . -name \*.xml -type f | while read xml; do \
@@ -10,6 +10,6 @@ format:
xmllint --format "$$xml" >"$$xml.tmp" && \
mv "$$xml.tmp" "$$xml"; \
done
-git:
- git commit -a -m 'Reformatted XML' && \
- git push origin hosts
+ git commit -a -m 'Reformatted XML' || exit 0
+push:
+ git push origin hosts