diff options
author | Lukas Larsson <[email protected]> | 2018-06-14 10:44:35 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2018-06-18 16:09:55 +0200 |
commit | 36001798500e6ddecd597a5694a7ee25ab4e6a64 (patch) | |
tree | 2d2167a98b99f1005dd73687bda5cd959ec71ee4 /scripts/bundle-otp | |
parent | 360b68d76d8c297d950616f088458b7c239be7ee (diff) | |
download | otp-36001798500e6ddecd597a5694a7ee25ab4e6a64.tar.gz otp-36001798500e6ddecd597a5694a7ee25ab4e6a64.tar.bz2 otp-36001798500e6ddecd597a5694a7ee25ab4e6a64.zip |
Add deploy stage to travis-ci
Diffstat (limited to 'scripts/bundle-otp')
-rwxr-xr-x | scripts/bundle-otp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/bundle-otp b/scripts/bundle-otp new file mode 100755 index 0000000000..f3ff632b63 --- /dev/null +++ b/scripts/bundle-otp @@ -0,0 +1,29 @@ +#!/bin/bash + +set -e + +OTP_META_FILE=$ERL_TOP/${TRAVIS_TAG}-bundle.txt +OTP_FILE=$ERL_TOP/${TRAVIS_TAG}-bundle.tar.gz + +REPOSITORIES="otp,$TRAVIS_TAG corba,.*" + +mkdir bundle + +for repo in $REPOSITORIES; do + OLD_IFS=$IFS + IFS=',' + set -- $repo + IFS=$OLD_IFS + cd $ERL_TOP/bundle/ + git clone https://github.com/erlang/$1 $1 + cd $1 + echo $1 $2 + TAG=`git tag -l | grep -P "$2" | sort -V | tail -1` + git checkout $TAG + SHA=`git rev-parse --verify HEAD` + rm -rf .git + echo "$1 $TAG $SHA" >> $OTP_META_FILE +done + +cd $ERL_TOP/bundle/ +tar czf $OTP_FILE * |