Sync mk_rpm_fpmdir from master

This commit is contained in:
Tom Limoncelli
2017-05-04 10:23:10 -04:00
parent fa0b4c6087
commit c2ce39b719

View File

@@ -107,7 +107,7 @@ cat "$@" | while read -a arr ; do
fi fi
if $GO_COMPILE && [[ $SRC == "cmd/"* || $SRC == *"/cmd/"* ]]; then if $GO_COMPILE && [[ $SRC == "cmd/"* || $SRC == *"/cmd/"* ]]; then
echo "========== BUILD&COPY $SRC" echo "========== BUILD&COPY $SRC"
( cd $(dirname "$SRC" ) && go get -d && go build -a ) ( cd $(dirname "$SRC" ) && go get -d && go build )
PKGARCH=native PKGARCH=native
else else
echo "========== COPY $SRC" echo "========== COPY $SRC"