[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [PATCH 1/2] Makefile.custom: factorize "make release"
From: Antony Pavlov <antonynpavlov () gmail ! com>
Date: 2013-10-31 20:33:17
Message-ID: 1383251598-18407-2-git-send-email-antonynpavlov () gmail ! com
[Download RAW message or body]
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
Makefile.custom | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/Makefile.custom b/Makefile.custom
index 3561e57..d6fe6ae 100644
--- a/Makefile.custom
+++ b/Makefile.custom
@@ -60,25 +60,25 @@ check test: busybox busybox.links
bindir=$(objtree) srcdir=$(srctree)/testsuite \
$(SHELL) -c "cd $(objtree)/testsuite && $(srctree)/testsuite/runtest $(if $(KBUILD_VERBOSE:0=),-v)"
+BBVERSIONNAME=busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
.PHONY: release
release: distclean
cd ..; \
- rm -r -f busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION); \
- cp -pPR busybox busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) && { \
- find busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)/ -type d \
+ rm -r -f $(BBVERSIONNAME); \
+ cp -pPR busybox $(BBVERSIONNAME) && { \
+ find $(BBVERSIONNAME)/ -type d \
-name .svn \
-print \
-exec rm -r -f {} \; ; \
- find busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)/ -type d \
+ find $(BBVERSIONNAME)/ -type d \
-name .git \
-print \
-exec rm -r -f {} \; ; \
- find busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)/ -type f \
+ find $(BBVERSIONNAME)/ -type f \
-name .\#* \
-print \
-exec rm -f {} \; ; \
- tar -czf busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION).tar.gz \
- busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)/ ; }
+ tar -czf $(BBVERSIONNAME).tar.gz $(BBVERSIONNAME)/ ; }
.PHONY: checkhelp
checkhelp:
--
1.8.4.rc3
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic