summaryrefslogtreecommitdiff
path: root/Makefile
blob: c446424d5a43a2ccd7bd014dcdd851a10817ac2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
all: check format git
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:
	git commit -a -m 'Reformatted XML' && \
		git push origin hosts