Commit eb9ef51d authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

scripts: update dist.sh to latest go-xc

parent b0848b27
...@@ -60,15 +60,11 @@ waitAll() { ...@@ -60,15 +60,11 @@ waitAll() {
trap "kill 0" SIGINT SIGTERM EXIT trap "kill 0" SIGINT SIGTERM EXIT
# Build our root project # Build our root project
xc & xc
# Build all the plugins # Build all the plugins
for PLUGIN in $(find ./plugin -mindepth 1 -maxdepth 1 -type d); do for PLUGIN in $(find ./plugin -mindepth 1 -maxdepth 1 -type d); do
PLUGIN_NAME=$(basename ${PLUGIN}) PLUGIN_NAME=$(basename ${PLUGIN})
(
pushd ${PLUGIN}
xc
popd
find ./pkg \ find ./pkg \
-type f \ -type f \
-name ${PLUGIN_NAME} \ -name ${PLUGIN_NAME} \
...@@ -77,11 +73,8 @@ for PLUGIN in $(find ./plugin -mindepth 1 -maxdepth 1 -type d); do ...@@ -77,11 +73,8 @@ for PLUGIN in $(find ./plugin -mindepth 1 -maxdepth 1 -type d); do
-type f \ -type f \
-name ${PLUGIN_NAME}.exe \ -name ${PLUGIN_NAME}.exe \
-execdir mv ${PLUGIN_NAME}.exe packer-${PLUGIN_NAME}.exe ';' -execdir mv ${PLUGIN_NAME}.exe packer-${PLUGIN_NAME}.exe ';'
) &
done done
waitAll
# Zip all the packages # Zip all the packages
mkdir -p ./pkg/${VERSIONDIR}/dist mkdir -p ./pkg/${VERSIONDIR}/dist
for PLATFORM in $(find ./pkg/${VERSIONDIR} -mindepth 1 -maxdepth 1 -type d); do for PLATFORM in $(find ./pkg/${VERSIONDIR} -mindepth 1 -maxdepth 1 -type d); do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment