summaryrefslogtreecommitdiff
path: root/Makefile
blob: c3946785733e9306673b990b1a057a3283d6d238 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
all: 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
push:
	git push origin hosts