mk: Implement git cleanliness check
This commit is contained in:
parent
777c012fa8
commit
f8f1136899
1 changed files with 7 additions and 0 deletions
7
Makefile
7
Makefile
|
@ -8,6 +8,13 @@ sign: $(patsubst %,%.sig,$(wildcard *.zone))
|
|||
%.sig: %
|
||||
gpg -o $@ --detach-sign $<
|
||||
|
||||
.PHONY: check-clean
|
||||
check-clean:
|
||||
[ ! -e .git ] || git diff-index --exit-code HEAD
|
||||
[ ! -e .git ] || \
|
||||
git ls-files --other --directory --exclude-standard | \
|
||||
sed -n '/.*\.zone/{p;q1}'
|
||||
|
||||
upload:
|
||||
printf 'put %s\n' *.zone *.sig | sftp dns.parabox.it-syndikat.org:zones/
|
||||
|
||||
|
|
Reference in a new issue