1 |
commit: a36dc6bb320ab9f08b5db8d6b24740f36d18ab51 |
2 |
Author: Matthias Schwarzott <zzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 8 10:50:52 2011 +0000 |
4 |
Commit: Matthias Schwarzott <zzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 8 10:50:52 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/udev-gentoo-scripts.git;a=commit;h=a36dc6bb |
7 |
|
8 |
make dist: Add check for uncommited changes |
9 |
|
10 |
--- |
11 |
Makefile | 6 +++++- |
12 |
1 files changed, 5 insertions(+), 1 deletions(-) |
13 |
|
14 |
diff --git a/Makefile b/Makefile |
15 |
index 5c69b7c..802c764 100644 |
16 |
--- a/Makefile |
17 |
+++ b/Makefile |
18 |
@@ -43,11 +43,15 @@ install: |
19 |
@install -m 0644 rc/confd/udev.confd $(DESTDIR)$(CONFD)/udev |
20 |
@install -m 0755 rc/baselayout1/* $(DESTDIR)$(RCADDON) |
21 |
|
22 |
+check-git-repository: |
23 |
+ git diff --quiet || { echo 'STOP, you have uncommitted changes in the working directory' ; false ; } |
24 |
+ git diff --cached --quiet || { echo 'STOP, you have uncommitted changes in the index' ; false ; } |
25 |
+ |
26 |
test: |
27 |
@echo "Running tests" |
28 |
@./test-kv.sh |
29 |
|
30 |
-dist: test |
31 |
+dist: check-git-repository test |
32 |
git archive --format=tar --prefix=$(DESTNAME)/ HEAD | bzip2 > $(DESTNAME).tar.bz2 |
33 |
|
34 |
.PHONY: install test |