summaryrefslogtreecommitdiff
path: root/Makefile
blob: 624f25d3127bc8c23a8790b9e56eb2e6b140ce0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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