Merge pull request #3826 from jonboulle/scripts

scripts: enforce genproto.sh is run from repo root
This commit is contained in:
Jonathan Boulle 2015-11-06 17:26:16 +01:00
commit e3ce605cb5

View File

@ -5,6 +5,11 @@
#
set -e
if ! [[ "$0" =~ "scripts/genproto.sh" ]]; then
echo "must be run from repository root"
exit 255
fi
PREFIX="github.com/coreos/etcd/Godeps/_workspace/src"
DIRS="./wal/walpb ./etcdserver/etcdserverpb ./snap/snappb ./raft/raftpb ./storage/storagepb"