diff options
| author | admin (alphacentauri) <default@mx.buetow.org> | 2017-02-12 13:14:07 +0000 |
|---|---|---|
| committer | admin (alphacentauri) <default@mx.buetow.org> | 2017-02-12 13:14:07 +0000 |
| commit | 3e65cce0ec33e290cf45b7cc9e661977bb225810 (patch) | |
| tree | ef49259a7ccdeb9525c0600091d8cacee3b9876e /Makefile | |
| parent | 2f299cb1293cafd7dcdf2e574ecc624540d7feff (diff) | |
| parent | 2b40c40f32cecf6c3a82a0e88c0459084e73011a (diff) | |
Merge remote-tracking branch 'remotes/github/hosts' into hosts
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 26 |
1 files changed, 18 insertions, 8 deletions
@@ -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 |
