scripts: add .exe extension on windows binaries

This commit is contained in:
Yicheng Qin
2015-03-20 16:45:29 -07:00
parent f8aaa6a161
commit 431fcc60ab

View File

@@ -35,8 +35,12 @@ function package {
if [ -d ${ccdir} ]; then
srcdir=${ccdir}
fi
local ext=""
if [ ${GOOS} == "windows" ]; then
ext=".exe"
fi
for bin in etcd etcdctl etcd-migrate; do
cp ${srcdir}/${bin} ${target}
cp ${srcdir}/${bin} ${target}/${bin}${ext}
done
cp etcd/README.md ${target}/README.md