[PATCH 1/2] Makefile.custom: factorize "make release"

Denys Vlasenko vda.linux at googlemail.com
Sat Nov 2 21:55:07 UTC 2013


On Thursday 31 October 2013 21:33, Antony Pavlov wrote:
> Signed-off-by: Antony Pavlov <antonynpavlov at 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:

I don't see a need for this.


More information about the busybox mailing list