forked from ungleich-public/cdist
more cleanups for the release process
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
7acf0412db
commit
295a8a404d
2 changed files with 18 additions and 9 deletions
17
Makefile
17
Makefile
|
@ -36,7 +36,7 @@ WEBPAGE=$(WEBBASE).mdwn
|
|||
CHANGELOG_VERSION=$(shell $(helper) changelog-version)
|
||||
CHANGELOG_FILE=docs/changelog
|
||||
|
||||
VERSION_FILE=cdist/version.py
|
||||
PYTHON_VERSION=cdist/version.py
|
||||
|
||||
################################################################################
|
||||
# Manpages
|
||||
|
@ -154,7 +154,7 @@ web-release-all: man-fix-link
|
|||
ML_FILE=.lock-ml
|
||||
|
||||
# Only send mail once - lock until new changelog things happened
|
||||
$(ML_FILE): $(CHANGELOG_FILE) git-release web-release
|
||||
$(ML_FILE): $(CHANGELOG_FILE)
|
||||
$(helper) ml-release $(CHANGELOG_VERSION)
|
||||
touch $@
|
||||
|
||||
|
@ -175,11 +175,7 @@ freecode-release: $(FREECODE_FILE)
|
|||
################################################################################
|
||||
# pypi
|
||||
#
|
||||
PYPI_FILE=.lock-pypi
|
||||
|
||||
pypi-release: $(PYPI_FILE)
|
||||
|
||||
$(PYPI_FILE): man $(VERSION_FILE)
|
||||
pypi-release: man $(PYTHON_VERSION)
|
||||
python3 setup.py sdist upload
|
||||
touch $@
|
||||
|
||||
|
@ -192,10 +188,10 @@ ARCHLINUXTAR=cdist-$(CHANGELOG_VERSION)-1.src.tar.gz
|
|||
$(ARCHLINUXTAR): PKGBUILD
|
||||
makepkg -c --source
|
||||
|
||||
PKGBUILD: PKGBUILD.in $(VERSION_FILE)
|
||||
PKGBUILD: PKGBUILD.in $(PYTHON_VERSION)
|
||||
./PKGBUILD.in $(CHANGELOG_VERSION)
|
||||
|
||||
$(ARCHLINUX_FILE): $(ARCHLINUXTAR) $(VERSION_FILE)
|
||||
$(ARCHLINUX_FILE): $(ARCHLINUXTAR) $(PYTHON_VERSION)
|
||||
burp -c system $(ARCHLINUXTAR)
|
||||
touch $@
|
||||
|
||||
|
@ -205,6 +201,9 @@ archlinux-release: $(ARCHLINUX_FILE)
|
|||
# Release
|
||||
#
|
||||
|
||||
$(PYTHON_VERSION): .git/refs/heads/master
|
||||
$(helper) version
|
||||
|
||||
# Code that is better handled in a shell script
|
||||
check-%:
|
||||
$(helper) $@
|
||||
|
|
|
@ -256,6 +256,16 @@ eof
|
|||
|
||||
# Announce change on ML
|
||||
make ml-release
|
||||
|
||||
cat << eof
|
||||
Manual steps post release:
|
||||
|
||||
- linkedin
|
||||
- hackernews
|
||||
- twitter
|
||||
|
||||
eof
|
||||
|
||||
;;
|
||||
|
||||
test)
|
||||
|
|
Loading…
Reference in a new issue