]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
Makefile: implement make release
authorPeter Korsgaard <jacmet@sunsite.dk>
Thu, 15 Jan 2009 19:36:06 +0000 (19:36 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 15 Jan 2009 19:36:06 +0000 (19:36 -0000)
Makefile

index 1e156766992f22db18a1376eb853bfc824857d17..157b5e91380c605e1814ea8b464c358944d0143b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -516,6 +516,12 @@ help:
        @echo 'See docs/README and docs/buildroot.html for further details'
        @echo
 
+release: distclean
+       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
+
 .PHONY: dummy subdirs release distclean clean config oldconfig \
        menuconfig tags check test depend defconfig help