mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #140 from marineam/quote
fix(build): If you quote in shell you're going to have a bad time.
This commit is contained in:
commit
4adc17eb01
22
build
22
build
@ -1,25 +1,25 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ETCD_PACKAGE=github.com/coreos/etcd
|
ETCD_PACKAGE=github.com/coreos/etcd
|
||||||
export GOPATH=${PWD}
|
export GOPATH="${PWD}"
|
||||||
SRC_DIR=$GOPATH/src
|
SRC_DIR="$GOPATH/src"
|
||||||
ETCD_DIR=$SRC_DIR/$ETCD_PACKAGE
|
ETCD_DIR="$SRC_DIR/$ETCD_PACKAGE"
|
||||||
|
|
||||||
ETCD_BASE=$(dirname ${ETCD_DIR})
|
ETCD_BASE=$(dirname "${ETCD_DIR}")
|
||||||
if [ ! -d ${ETCD_BASE} ]; then
|
if [ ! -d "${ETCD_BASE}" ]; then
|
||||||
mkdir -p ${ETCD_BASE}
|
mkdir -p "${ETCD_BASE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -h ${ETCD_DIR} ]; then
|
if [ ! -h "${ETCD_DIR}" ]; then
|
||||||
ln -s ../../../ ${ETCD_DIR}
|
ln -s ../../../ "${ETCD_DIR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for i in third_party/*; do
|
for i in third_party/*; do
|
||||||
if [ $i = "third_party/src" ]; then
|
if [ "$i" = "third_party/src" ]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
cp -R $i src/
|
cp -R "$i" src/
|
||||||
done
|
done
|
||||||
|
|
||||||
./scripts/release-version > release_version.go
|
./scripts/release-version > release_version.go
|
||||||
go build ${ETCD_PACKAGE}
|
go build "${ETCD_PACKAGE}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user