Browse Source

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
Brandon Philips 11 years ago
parent
commit
538ce935f0
1 changed files with 10 additions and 8 deletions
  1. 10 8
      scripts/build-release

+ 10 - 8
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}