File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ if [ " x$1 " == " x" ]
4+ then
5+ echo " Usage: $0 <version> [email]"
6+ echo " Generate the tarball verification info suitable to put into an announcement."
7+ echo
8+ echo " Examples"
9+ echo " $0 7.0.0beta3"
10+ exit 0
11+ fi
12+
13+ RELEASE_VER=$1
14+
15+ GPG_USER=
16+ if [ " x$2 " != " x" ]
17+ then
18+ GPG_USER=$2
19+ fi
20+
21+
22+ for TARBALL in " php-$RELEASE_VER .tar.bz2" " php-$RELEASE_VER .tar.gz" " php-$RELEASE_VER .tar.xz"
23+ do
24+ if ! [ -e $TARBALL ]
25+ then
26+ echo " $TARBALL doesn't exist"
27+ exit 3
28+ fi
29+
30+ if [ -n $GPG_USER ]
31+ then
32+ gpg --armor --detach-sign $TARBALL
33+ else
34+ gpg -u $GPG_USER --armor --detach-sign $TARBALL
35+ fi
36+ done
37+
38+ for TARBALL in " php-$RELEASE_VER .tar.bz2" " php-$RELEASE_VER .tar.gz" " php-$RELEASE_VER .tar.xz"
39+ do
40+ echo $TARBALL
41+ echo " SHA256 hash: ` sha256sum $TARBALL | cut -d' ' -f1` " ;
42+ echo PGP signature:
43+ cat $TARBALL .asc
44+ echo -e " \n\n"
45+ done
46+
47+ exit 0
48+
You can’t perform that action at this time.
0 commit comments