summaryrefslogtreecommitdiff
path: root/distsign
blob: 7e0262d58da6de2048de8e157bb7676b08226176 (plain) (blame)
1
2
3
4
5
6
7
8
#!/bin/sh
if [ -f $1 ]; then
    distname=`echo $1 | sed -e 's/.tar.*$//'`
    sha256 $1 | gpg --clearsign > $distname.sha256
else
    echo "distsign: $1: Not a file" >&2
    exit 1
fi