mirror of
https://github.com/golang/go
synced 2024-11-26 14:46:47 -07:00
f22137d785
Change-Id: Ic52948d0a0f353760b186c83df8648650457e965 Reviewed-on: https://go-review.googlesource.com/c/go/+/285032 Trust: Filippo Valsorda <filippo@golang.org> Reviewed-by: Roland Shoemaker <roland@golang.org>
35 lines
794 B
Bash
Executable File
35 lines
794 B
Bash
Executable File
#! /bin/bash
|
|
set -euo pipefail
|
|
|
|
if [ "$#" -eq 0 ]; then
|
|
echo "usage: <target branch> [<target branch> ...]"
|
|
echo ""
|
|
echo "example: release.sh dev.boringcrypto.go1.11 dev.boringcrypto.go1.12"
|
|
exit 1
|
|
fi
|
|
|
|
# Check that the Docker daemon is available.
|
|
docker ps > /dev/null
|
|
|
|
WORKTREE="$(mktemp -d)"
|
|
BRANCH="boring/release-$(date +%Y%m%d%H%M%S)"
|
|
|
|
git fetch
|
|
git worktree add --track -b "$BRANCH" "$WORKTREE" origin/dev.boringcrypto
|
|
|
|
cd "$WORKTREE/src"
|
|
./make.bash
|
|
|
|
cd ../misc/boring
|
|
for branch in "$@"; do
|
|
./build.release "origin/$branch"
|
|
./build.docker
|
|
done
|
|
|
|
git add RELEASES
|
|
git commit -m "misc/boring: add new releases to RELEASES file"
|
|
git codereview mail -r katie@golang.org,roland@golang.org,filippo@golang.org -trust
|
|
|
|
rm *.tar.gz
|
|
cd - && git worktree remove "$WORKTREE"
|