Update the pipeline to produce a tarball of the source upon every commit.

Unfortunately, it's not possible to preserve previous tarballs from run to run.
This commit is contained in:
Jason S. Ninneman 2017-06-04 13:21:52 -07:00
parent 2f9d798574
commit afba06504a
2 changed files with 18 additions and 18 deletions

View file

@ -67,9 +67,9 @@ DOCS=COPYING NEWS README.adoc TODO \
# Can't use GNU tar's --transform, needs to build under Alpine Linux
advent-$(VERS).tar.gz: $(SOURCES) $(DOCS)
@ls $(SOURCES) $(DOCS) | sed s:^:advent-$(VERS)/: >MANIFEST
@(cd ..; ln -s advent advent-$(VERS))
(cd ..; tar -czvf advent/advent-$(VERS).tar.gz `cat advent/MANIFEST`)
@(cd ..; rm advent-$(VERS))
@(ln -s . advent-$(VERS))
(tar -T MANIFEST -czvf advent-$(VERS).tar.gz)
@(rm advent-$(VERS))
dist: advent-$(VERS).tar.gz