Re: [PATCH] Add "scratch" target that builds a tarball of origin/master .

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Since "archive-no-tag" isn't very useful for test builds, add another
> tarball-making target that just builds whatever is in origin/master.
> ---
>  Makefile |   12 ++++++++++++
>  1 files changed, 12 insertions(+), 0 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index af32721..17a8fe8 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -120,6 +120,18 @@ archive-no-tag:
>  	@bzip2 -f anaconda-$(VERSION).tar
>  	@rm -rf anaconda-$(VERSION)
>  
> +scratch:
> +	@rm -f ChangeLog docs/kickstart-docs.txt docs/command-line.txt
> +	@make ChangeLog
> +	@make -C docs kickstart-docs.txt command-line.txt
> +	@git archive --format=tar --prefix=anaconda-$(VERSION)/ origin/master > anaconda-$(VERSION).tar
> +	@mkdir -p anaconda-$(VERSION)/docs/
> +	@cp docs/kickstart-docs.txt docs/command-line.txt anaconda-$(VERSION)/docs/
> +	@cp ChangeLog anaconda-$(VERSION)/
> +	@tar --append -f anaconda-$(VERSION).tar anaconda-$(VERSION)
> +	@bzip2 -f anaconda-$(VERSION).tar
> +	@rm -rf anaconda-$(VERSION)
> +

ACK on the idea, but since this is almost the same as archive-no-tag
(except for the tag we're archiving from), is it worth combining the two
targets into one that does all the hard work and then having wrappers to
set the tag?  Something like:

archive-for-tag:
   @rm -f blah blah blah
   ...
   @git archive --format=tar --prefix=anaconda-$(VERSION)/ $(TAG) > anaconda-$(VERSION).tar
   ...

scratch:
   make TAG=origin/master archive-for-tag

archive-no-tag:
   make TAG=anaconda-$(VERSION) archive-for-tag

You get the idea.  Man, I hate make.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux