From 538ce935f0b4d75522d6fbfb8d764cb2a3d94145 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Mon, 27 Oct 2014 12:17:25 -0700 Subject: [PATCH] scripts: import script from 0.5 release It isn't pretty but this was the tool used to build the zip and tar files for 0.5 --- scripts/build-release | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/scripts/build-release b/scripts/build-release index 7af753d6b..990e03e43 100755 --- a/scripts/build-release +++ b/scripts/build-release @@ -20,17 +20,21 @@ function build { } function package { - proj=${1} - target=${2} + target=${1} ccdir="${proj}/bin/${GOOS}_${GOARCH}" if [ -d ${ccdir} ]; then - cp ${ccdir}/${proj}* ${target} + cp ${ccdir}/etcdctl ${target} + cp ${ccdir}/etcd ${target} else - cp ${proj}/bin/${proj} ${target} + cp ${proj}/bin/etcd ${target} + cp ${proj}/bin/etcdctl ${target} fi - cp ${proj}/README.md ${target}/README-${proj}.md + cp etcd/README.md ${target}/README.md + cp etcd/etcdctl/README.md ${target}/README-etcdctl.md + + cp -R etcd/Documentation/0.5 ${target}/Documentation } mkdir release @@ -41,13 +45,11 @@ for i in darwin windows linux; do export GOARCH="amd64" build etcd ${VER} - build etcdctl ${VER} TARGET="etcd-${VER}-${GOOS}-${GOARCH}" mkdir ${TARGET} - package etcd ${TARGET} - package etcdctl ${TARGET} + package ${TARGET} if [ ${GOOS} == "linux" ]; then tar cvvfz ${TARGET}.tar.gz ${TARGET}