# HG changeset patch # User Paul Boddie # Date 1580665954 -3600 # Node ID 58160f327ce48bdcae3b1cb011c477f05609cf62 # Parent 280c4495ea41a88ef63d94e36c94dc2feadb9faa Added release management tools. diff -r 280c4495ea41 -r 58160f327ce4 docs/tools/make_releases.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/tools/make_releases.sh Sun Feb 02 18:52:34 2020 +0100 @@ -0,0 +1,39 @@ +#!/bin/sh + +DIRNAME=`dirname "$0"` +PROGNAME=`basename "$0"` + +ARCHIVE=MoinLight + +if [ ! "$1" ] || [ "$1" = '--help' ] ; then + cat 1>&2 < [ -f ] + +Make release archives from tags starting with "rel-" in the repository, +storing the archives in the output directory. If an archive already exists for +a release, it is not regenerated unless the -f (force) option is given. + +All newly-created archive filenames are emitted on standard output. +EOF + exit 1 +fi + +OUTDIR=$1 +FORCE=$2 + +if [ "$FORCE" != '-f' ]; then + FORCE= +fi + +if [ ! -e "$OUTDIR" ]; then + mkdir -p "$OUTDIR" +fi + +for TAG in `hg tags | grep ^rel- | cut -f 1 -d ' '` ; do + NUM=`echo "$TAG" | sed 's/rel-//;s/-/./g'` + OUTFILE="$OUTDIR/$ARCHIVE-$NUM.tar.bz2" + if [ ! -e "$OUTFILE" ] || [ "$FORCE" ]; then + hg archive -t tbz2 -r "$TAG" "$OUTFILE" + echo "$OUTFILE" + fi +done diff -r 280c4495ea41 -r 58160f327ce4 docs/tools/sign_releases.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/tools/sign_releases.sh Sun Feb 02 18:52:34 2020 +0100 @@ -0,0 +1,39 @@ +#!/bin/sh + +DIRNAME=`dirname "$0"` +PROGNAME=`basename "$0"` + +if [ ! "$1" ] || [ "$1" = '--help' ] ; then + cat 1>&2 < [ -f ] + +Sign archives in the given archive directory, invoking GPG to produce a +detached signature. If a signature already exists for an archive, it is not +regenerated unless the -f (force) option is given. + +All newly-created signature filenames are emitted on standard output. +EOF + exit 1 +fi + +OUTDIR=$1 +FORCE=$2 + +if [ "$FORCE" != '-f' ]; then + FORCE= +fi + +if [ ! -e "$OUTDIR" ]; then + cat 1>&2 <