imip-agent

Annotated docs/tools/sign_releases.sh

1122:2003934ef901
2016-04-19 Paul Boddie Support replies from attendees that refer to specific recurrences before the organiser does so, thus allowing attendees to selectively accept and decline recurrences. Allowed the test handler to refer to recurrences that have not been explicitly separated from their parent objects. Added a docstring for the Object initialiser as a reminder of how to use it. freebusy-collections
paul@1104 1
#!/bin/sh
paul@1104 2
paul@1104 3
DIRNAME=`dirname $0`
paul@1104 4
PROGNAME=`basename $0`
paul@1104 5
OUTDIR=$1
paul@1104 6
FORCE=$2
paul@1104 7
paul@1104 8
if [ ! "$OUTDIR" ]; then
paul@1104 9
    cat 1>&2 <<EOF
paul@1104 10
Usage: $PROGNAME <archive directory>
paul@1104 11
EOF
paul@1104 12
    exit 1
paul@1104 13
fi
paul@1104 14
paul@1104 15
if [ "$FORCE" != '-f' ]; then
paul@1104 16
    FORCE=
paul@1104 17
fi
paul@1104 18
paul@1104 19
if [ ! -e "$OUTDIR" ]; then
paul@1104 20
    cat 1>&2 <<EOF
paul@1104 21
No archive directory to process.
paul@1104 22
EOF
paul@1104 23
    exit 1
paul@1104 24
fi
paul@1104 25
paul@1104 26
for FILENAME in "$OUTDIR/"*".tar.bz2" ; do
paul@1104 27
    OUTFILE="$FILENAME.asc"
paul@1104 28
    if [ ! -e "$OUTFILE" ] || [ "$FORCE" ]; then
paul@1104 29
        gpg --sign -a -b "$FILENAME"
paul@1104 30
    fi
paul@1104 31
    echo "$OUTFILE"
paul@1104 32
done