diff options
author | Fredrik Åslund <fredrik.aslund@umu.se> | 2013-06-12 13:59:44 +0200 |
---|---|---|
committer | Fredrik Åslund <fredrik.aslund@umu.se> | 2013-06-12 13:59:44 +0200 |
commit | ea43370d6a031c029605263796f3559ea19ae41b (patch) | |
tree | 33ede8b6b8b9cb6fb472ced3cf75eaec964fa6a5 | |
parent | 6420a7065b7e60578c8f246a80063473dbc97241 (diff) |
make commit added
make test fixed to abort on errors
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -134,9 +134,17 @@ swamid-ki-sll: test: swamid2-deps @for x in $(MXML); do xmllint --xinclude --nowarning --noout --path schema --schema schema.xsd $$x 2>&1 ; done | sed 's/fails to validate/[1;31m&[0m/;s/validates/[1;32m&[0m/' + @for x in $(MXML); do xmllint --xinclude --nowarning --noout --path schema --schema schema.xsd $$x > /dev/null 2>&1 || exit 1 ; done clean: @rm -f *.xml *.tbs *.n tidy: @for x in `find $(SRCDIRS) -name \*.xml`; do xsltproc xslt/clean-entitydescriptor.xsl $$x > $$x.c && mv $$x.c $$x; done + +commit: tidy test + @echo ; echo -n "Run 'git commit -a'? [Y/n] " ; read x ; case $$x in "Y"|"y"|"") ;; *) exit 1 ;; esac + @git commit -a + @echo ; echo -n "Run 'git push'? [Y/n] " ; read x ; case $$x in "Y"|"y"|"") ;; *) exit 1 ;; esac + @git push + |