@@ -53,23 +53,29 @@ distrib-gen-version-h:
5353 @echo " GEN $( VERSION_H) .distrib"
5454 scripts/gen_version_h.sh $(VERSION_H ) .distrib
5555
56+ delete-werror :
57+ sed -i -e ' s/-Werror//g' Makefile.common
58+
5659# The following target should be used to generate a release tarball of Solo5.
5760# The tarball will be generated from the currently checked-out branch. Note that
5861# some files related to CI or E2E tests are deliberately not included, see
5962# .gitattributes for a list.
6063.PHONY : distrib
61- distrib : GIT_VERSION = $(shell git -C . describe --dirty -- tags --always)
64+ distrib : GIT_VERSION = $(shell git -C . describe --tags --always)
6265distrib : GIT_OLDBRANCH = $(shell git rev-parse --abbrev-ref HEAD)
63- distrib : distrib-gen-version-h
66+ distrib : distrib-gen-version-h delete-werror
6467 git checkout -b distrib/$(GIT_VERSION )
6568 git add $(VERSION_H ) .distrib
69+ git add Makefile.common
6670 git commit -m " Release tarball for $( GIT_VERSION) "
6771 @echo DISTRIB solo5-$(GIT_VERSION ) .tar.gz
6872 git archive --format=tar.gz --prefix=solo5-$(GIT_VERSION ) / \
6973 distrib/$(GIT_VERSION ) > solo5-$(GIT_VERSION ) .tar.gz
74+ GIT_VERSION=$(GIT_VERSION ) ./scripts/opam-release.sh
7075 -git checkout $(GIT_OLDBRANCH )
7176 -git branch -D distrib/$(GIT_VERSION )
7277 $(RM ) $(VERSION_H ) .distrib
78+ git checkout -- Makefile.common
7379
7480$(SUBDIRS ) :
7581 @echo " MAKE $@ "
0 commit comments