1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/docs/tools/make_releases.sh Sun Feb 02 18:52:34 2020 +0100
1.3 @@ -0,0 +1,39 @@
1.4 +#!/bin/sh
1.5 +
1.6 +DIRNAME=`dirname "$0"`
1.7 +PROGNAME=`basename "$0"`
1.8 +
1.9 +ARCHIVE=MoinLight
1.10 +
1.11 +if [ ! "$1" ] || [ "$1" = '--help' ] ; then
1.12 + cat 1>&2 <<EOF
1.13 +Usage: $PROGNAME <output directory> [ -f ]
1.14 +
1.15 +Make release archives from tags starting with "rel-" in the repository,
1.16 +storing the archives in the output directory. If an archive already exists for
1.17 +a release, it is not regenerated unless the -f (force) option is given.
1.18 +
1.19 +All newly-created archive filenames are emitted on standard output.
1.20 +EOF
1.21 + exit 1
1.22 +fi
1.23 +
1.24 +OUTDIR=$1
1.25 +FORCE=$2
1.26 +
1.27 +if [ "$FORCE" != '-f' ]; then
1.28 + FORCE=
1.29 +fi
1.30 +
1.31 +if [ ! -e "$OUTDIR" ]; then
1.32 + mkdir -p "$OUTDIR"
1.33 +fi
1.34 +
1.35 +for TAG in `hg tags | grep ^rel- | cut -f 1 -d ' '` ; do
1.36 + NUM=`echo "$TAG" | sed 's/rel-//;s/-/./g'`
1.37 + OUTFILE="$OUTDIR/$ARCHIVE-$NUM.tar.bz2"
1.38 + if [ ! -e "$OUTFILE" ] || [ "$FORCE" ]; then
1.39 + hg archive -t tbz2 -r "$TAG" "$OUTFILE"
1.40 + echo "$OUTFILE"
1.41 + fi
1.42 +done
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/docs/tools/sign_releases.sh Sun Feb 02 18:52:34 2020 +0100
2.3 @@ -0,0 +1,39 @@
2.4 +#!/bin/sh
2.5 +
2.6 +DIRNAME=`dirname "$0"`
2.7 +PROGNAME=`basename "$0"`
2.8 +
2.9 +if [ ! "$1" ] || [ "$1" = '--help' ] ; then
2.10 + cat 1>&2 <<EOF
2.11 +Usage: $PROGNAME <archive directory> [ -f ]
2.12 +
2.13 +Sign archives in the given archive directory, invoking GPG to produce a
2.14 +detached signature. If a signature already exists for an archive, it is not
2.15 +regenerated unless the -f (force) option is given.
2.16 +
2.17 +All newly-created signature filenames are emitted on standard output.
2.18 +EOF
2.19 + exit 1
2.20 +fi
2.21 +
2.22 +OUTDIR=$1
2.23 +FORCE=$2
2.24 +
2.25 +if [ "$FORCE" != '-f' ]; then
2.26 + FORCE=
2.27 +fi
2.28 +
2.29 +if [ ! -e "$OUTDIR" ]; then
2.30 + cat 1>&2 <<EOF
2.31 +No archive directory to process.
2.32 +EOF
2.33 + exit 1
2.34 +fi
2.35 +
2.36 +for FILENAME in "$OUTDIR/"*".tar.bz2" ; do
2.37 + OUTFILE="$FILENAME.asc"
2.38 + if [ ! -e "$OUTFILE" ] || [ "$FORCE" ]; then
2.39 + gpg --sign -a -b "$FILENAME"
2.40 + echo "$OUTFILE"
2.41 + fi
2.42 +done