summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-02-09 16:34:04 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2010-02-09 16:34:04 +0100
commit23ddf460aa6def6b70a694ed5898750fda8d429a (patch)
treeb4733b0fd528087ec910c88b16e8751b29c4d605
parentd5d48254dc539dfb3f50d18fa3d72a1effd74267 (diff)
Makefile: release: use git archive
Create tarballs with git-archive so we're sure they don't contain anything not in git (E.G. local backup configs). Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 177701ef4..a0c18ba7c 100644
--- a/Makefile
+++ b/Makefile
@@ -634,11 +634,9 @@ help:
@echo 'See docs/README and docs/buildroot.html for further details'
@echo
-release: distclean
+release:
OUT=buildroot-$$(grep -A2 BR2_VERSION $(CONFIG_CONFIG_IN)|grep default|cut -f2 -d\"); \
- rm -rf ../$$OUT*; cp -al . ../$$OUT; cd ..; \
- tar cfz $$OUT.tar.gz --exclude .svn --exclude .git --exclude \*~ $$OUT; \
- rm -rf $$OUT
+ git archive --format=tar --prefix=$$OUT/ master|gzip -9 >$$OUT.tar.gz
.PHONY: $(noconfig_targets)