1.1 --- a/docs/tools/make_releases.sh Fri Apr 22 23:26:51 2016 +0200
1.2 +++ b/docs/tools/make_releases.sh Fri Apr 22 23:38:31 2016 +0200
1.3 @@ -1,17 +1,24 @@
1.4 #!/bin/sh
1.5
1.6 -DIRNAME=`dirname $0`
1.7 -PROGNAME=`basename $0`
1.8 -OUTDIR=$1
1.9 -FORCE=$2
1.10 +DIRNAME=`dirname "$0"`
1.11 +PROGNAME=`basename "$0"`
1.12
1.13 -if [ ! "$OUTDIR" ]; then
1.14 +if [ ! "$1" ] || [ "$1" = '--help' ] ; then
1.15 cat 1>&2 <<EOF
1.16 Usage: $PROGNAME <output directory> [ -f ]
1.17 +
1.18 +Make release archives from tags starting with "rel-" in the repository,
1.19 +storing the archives in the output directory. If an archive already exists for
1.20 +a release, it is not regenerated unless the -f (force) option is given.
1.21 +
1.22 +All newly-created archive filenames are emitted on standard output.
1.23 EOF
1.24 exit 1
1.25 fi
1.26
1.27 +OUTDIR=$1
1.28 +FORCE=$2
1.29 +
1.30 if [ "$FORCE" != '-f' ]; then
1.31 FORCE=
1.32 fi
1.33 @@ -25,6 +32,6 @@
1.34 OUTFILE="$OUTDIR/imip-agent-$NUM.tar.bz2"
1.35 if [ ! -e "$OUTFILE" ] || [ "$FORCE" ]; then
1.36 hg archive -t tbz2 -r "$TAG" "$OUTFILE"
1.37 + echo "$OUTFILE"
1.38 fi
1.39 - echo "$OUTFILE"
1.40 done
2.1 --- a/docs/tools/sign_releases.sh Fri Apr 22 23:26:51 2016 +0200
2.2 +++ b/docs/tools/sign_releases.sh Fri Apr 22 23:38:31 2016 +0200
2.3 @@ -1,17 +1,24 @@
2.4 #!/bin/sh
2.5
2.6 -DIRNAME=`dirname $0`
2.7 -PROGNAME=`basename $0`
2.8 -OUTDIR=$1
2.9 -FORCE=$2
2.10 +DIRNAME=`dirname "$0"`
2.11 +PROGNAME=`basename "$0"`
2.12
2.13 -if [ ! "$OUTDIR" ]; then
2.14 +if [ ! "$1" ] || [ "$1" = '--help' ] ; then
2.15 cat 1>&2 <<EOF
2.16 -Usage: $PROGNAME <archive directory>
2.17 +Usage: $PROGNAME <archive directory> [ -f ]
2.18 +
2.19 +Sign archives in the given archive directory, invoking GPG to produce a
2.20 +detached signature. If a signature already exists for an archive, it is not
2.21 +regenerated unless the -f (force) option is given.
2.22 +
2.23 +All newly-created signature filenames are emitted on standard output.
2.24 EOF
2.25 exit 1
2.26 fi
2.27
2.28 +OUTDIR=$1
2.29 +FORCE=$2
2.30 +
2.31 if [ "$FORCE" != '-f' ]; then
2.32 FORCE=
2.33 fi
2.34 @@ -27,6 +34,6 @@
2.35 OUTFILE="$FILENAME.asc"
2.36 if [ ! -e "$OUTFILE" ] || [ "$FORCE" ]; then
2.37 gpg --sign -a -b "$FILENAME"
2.38 + echo "$OUTFILE"
2.39 fi
2.40 - echo "$OUTFILE"
2.41 done