2
1
Эх сурвалжийг харах

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>
Peter Korsgaard 15 жил өмнө
parent
commit
23ddf460aa
1 өөрчлөгдсөн 2 нэмэгдсэн , 4 устгасан
  1. 2 4
      Makefile

+ 2 - 4
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)