summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e7b1cac..e628d3d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
MXML=$(shell find . -type f -name "*.xml")
-tag: schematest
+tag: commit
./scripts/bump-tag
update: update-git
@@ -13,3 +13,8 @@ test: schematest
schematest:
@fail=false ; for x in $(MXML); do test=`xmllint --xinclude --nowarning --noout --path schema --schema schema.xsd $$x 2>&1`; rc=$$?; echo $$test | sed 's/fails to validate/&/;s/validates/&/'; if [ $$rc -gt 0 ]; then fail=true ; fi; done ; if $$fail ; then exit 1 ; fi
+commit: schematest
+ @git diff --color || true
+ @echo ; echo -n "Run 'git commit -av'? [Y/n/skip] " ; read x ; case $$x in "Y"|"y"|"") git commit -av ;; s|skip) ;; *) exit 1 ;; esac
+ @git status -u
+ @echo "Checking for not files not staged for yet commit" ; if git status --porcelain --ignored | awk '{print $$2}' | egrep "^Shibboleth-|^schema|^scripts" | sed 's/^/ /' | grep . ; then echo "There are files not staged for commit, aborting" ; exit 1 ; fi