Add scripts for automating parts of the release.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2015-09-11 01:44:25 -04:00
commit da91b81bb8
6 changed files with 269 additions and 42 deletions

20
script/release/utils.sh Normal file
View file

@ -0,0 +1,20 @@
#!/bin/bash
#
# Util functions for release scritps
#
set -e
function browser() {
local url=$1
xdg-open $url || open $url
}
function find_remote() {
local url=$1
for remote in $(git remote); do
git config --get remote.${remote}.url | grep $url > /dev/null && echo -n $remote
done
}