enhance build scripts for releasing from non-master branch
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
1cdcb12ebd
commit
3a2bd673c9
2 changed files with 8 additions and 3 deletions
5
Makefile
5
Makefile
|
@ -99,7 +99,7 @@ man-dist: man check-date
|
|||
cp ${MAN7DSTDIR}/*.html ${MAN7DSTDIR}/*.css ${MANWEBDIR}/man7
|
||||
cd ${MANWEBDIR} && git add . && git commit -m "cdist manpages update: $(CHANGELOG_VERSION)" || true
|
||||
|
||||
man-fix-link: web-pub
|
||||
man-latest-link: web-pub
|
||||
# Fix ikiwiki, which does not like symlinks for pseudo security
|
||||
ssh tee.schottelius.org \
|
||||
"cd /home/services/www/nico/www.nico.schottelius.org/www/software/cdist/man && rm -f latest && ln -sf "$(CHANGELOG_VERSION)" latest"
|
||||
|
@ -146,7 +146,8 @@ web-dist: web-blog web-doc
|
|||
web-pub: web-dist man-dist speeches-dist
|
||||
cd "${WEBDIR}" && make pub
|
||||
|
||||
web-release-all: man-fix-link
|
||||
web-release-all: man-latest-link
|
||||
web-release-all-no-latest: web-pub
|
||||
|
||||
################################################################################
|
||||
# Release: Mailinglist
|
||||
|
|
|
@ -256,7 +256,11 @@ eof
|
|||
make pub
|
||||
|
||||
# publish man, speeches, website
|
||||
make web-release-all
|
||||
if [ "$masterbranch" = yes ]; then
|
||||
make web-release-all
|
||||
else
|
||||
make web-release-all-no-latest
|
||||
fi
|
||||
|
||||
# Ensure that pypi release has the right version
|
||||
"$0" version
|
||||
|
|
Loading…
Reference in a new issue