diff options
Diffstat (limited to 'contrib/scripts/generate-release-triplet.sh')
-rwxr-xr-x | contrib/scripts/generate-release-triplet.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/contrib/scripts/generate-release-triplet.sh b/contrib/scripts/generate-release-triplet.sh new file mode 100755 index 000000000..7dc890dc0 --- /dev/null +++ b/contrib/scripts/generate-release-triplet.sh | |||
@@ -0,0 +1,21 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | PACKAGE=$1 | ||
4 | VERSION=$2 | ||
5 | |||
6 | cat << EOF >> $PACKAGE-$VERSION.directive | ||
7 | version: 1.2 | ||
8 | directory: gnunet | ||
9 | filename: $PACKAGE-$VERSION.tar.gz | ||
10 | symlink: $PACKAGE-$VERSION.tar.gz $PACKAGE-latest.tar.gz | ||
11 | EOF | ||
12 | |||
13 | gpg --clearsign $PACKAGE-$VERSION.directive | ||
14 | gpg -b $PACKAGE-$VERSION.tar.gz | ||
15 | exit | ||
16 | ftp -inv ftp-upload.gnu.org <<EOF | ||
17 | user anonymous | ||
18 | cd incoming/ftp | ||
19 | mput $PACKAGE-$VERSION.tar.gz $PACKAGE-$VERSION.tar.gz.sig $PACKAGE-$VERSION.tar.gz.directive.asc | ||
20 | bye | ||
21 | EOF | ||