summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Kacur <jkacur@redhat.com>2015-07-09 15:32:40 +0200
committerJohn Kacur <jkacur@redhat.com>2015-07-09 15:32:40 +0200
commita67ec68b940b1ad1f843c107541010c320ee8724 (patch)
tree1fa0a4383b95dc0b5dde7c1124a796867e27c9bc
parentb6b5c594b2861f10a615cfa7b324523800eea267 (diff)
downloadrt-tests-a67ec68b940b1ad1f843c107541010c320ee8724.tar.gz
Create an rt-tests.tar file using git-archive
Create an rt-tests.tar file using git-archive so we don't mistakenly pull in uncommitted files Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1f7640b..07394e1 100644
--- a/Makefile
+++ b/Makefile
@@ -118,6 +118,7 @@ CLEANUP += $(if $(wildcard .git), ChangeLog)
.PHONY: clean
clean:
for F in $(CLEANUP); do find -type f -name $$F | xargs rm -f; done
+ rm -f rt-tests-*.tar
rm -f hwlatdetect
rm -f tags
@@ -165,6 +166,10 @@ release: distclean changelog
rm -f ChangeLog
cp rt-tests-$(VERSION).tar.gz rt-tests-$(VERSION).tar.asc releases
+.PHONY: tarball
+tarball:
+ git archive --worktree-attributes --prefix=rt-tests-${VERSION}/ -o rt-tests-${VERSION}.tar v${VERSION}
+
.PHONY: push
push: release
scripts/do-git-push $(VERSION)