summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFredrik Åslund <fredrik.aslund@umu.se>2013-08-26 10:36:31 +0200
committerFredrik Åslund <fredrik.aslund@umu.se>2013-08-26 10:36:31 +0200
commit41ab5b41186cac16eb872c51f9e4edae7fa14995 (patch)
treed2669b1d11169a79598de6f5cc03761a3950c744
parent7879735a676c6887bb59041000b0de353cb4ad23 (diff)
Makefile updated to abort commit on untracked swamid-2.0/ files
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6748a3d1..44131729 100644
--- a/Makefile
+++ b/Makefile
@@ -146,6 +146,7 @@ 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
@git status -u
+ @if git status --porcelain --ignored | awk '{print $2}' | grep ^swamid-2.0/ ; then echo "Untracked files in swamid-2.0/, aborting" ; exit 1 ; fi
@echo ; echo -n "Run 'git push'? [Y/n] " ; read x ; case $$x in "Y"|"y"|"") ;; *) exit 1 ;; esac
@git push