mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #10 from philips/add-build-script
feat(build): add initial build script
This commit is contained in:
commit
59ac6e85a9
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
src
|
||||
etcd
|
18
build
Executable file
18
build
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
ETCD_PACKAGE=github.com/coreos/etcd
|
||||
GOPATH=${PWD}
|
||||
SRC_DIR=$GOPATH/src
|
||||
ETCD_DIR=$SRC_DIR/$ETCD_PACKAGE
|
||||
|
||||
ETCD_BASE=$(dirname ${ETCD_DIR})
|
||||
if [ ! -d ${ETCD_BASE} ]; then
|
||||
mkdir -p ${ETCD_BASE}
|
||||
fi
|
||||
|
||||
if [ ! -h ${ETCD_DIR} ]; then
|
||||
ln -s ../../../ ${ETCD_DIR}
|
||||
fi
|
||||
|
||||
go get -d ./...
|
||||
go build ${ETCD_PACKAGE}
|
Loading…
x
Reference in New Issue
Block a user