Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Packer
Commits
b279537b
Commit
b279537b
authored
12 years ago
by
Mitchell Hashimoto
Browse files
Options
Download
Email Patches
Plain Diff
dist.sh maxes out CPU
parent
69f96aa3
main
actions/fix-check-links
azr/mini-dag
azr_acc_test_install_n_run_single_plugins
azr_implicit_requried_plugin_2
azr_remove_amazon_builder
b-azure_arm-cert-timeout
backport/brk.feat/remove-website-code/horribly-finer-bison
backport/clarify-builders-page/promptly-fun-cheetah
backport/nywilken/update-plugins-link/steadily-ace-bear
backport/update-docs-hcp-packer-ga/deeply-capital-malamute
backport/update-docs-hcp-packer-ga/slowly-golden-narwhal
backport/update-docs-hcp-packer-ga/solely-renewing-chipmunk
brk.feat/mdx-v2
build-after-tests
bump_hcp_sdk_go
config_docs
crt-onboarding-test
d-powershell-generated-docs
dependabot/github_actions/slackapi/slack-github-action-1.19.0
example-test
extract_outscale
f-inspect-regression
fix_1000
fix_100000
hcp-packer-registry-pps
improved-error-handling-hcp-packer
linode-hcp-ready
mode-check
nywilken/update-external-plugins
packer-plugin-dev-documentation-updates
poc/packer-init
pr/10199
release/1.7.x
release/1.8.x
revert-6594-mode-check
stable-website
testing_hcp_rewrite_two
update-alert-banner
update-community-codeowners
update_sdk
use_progress_bar
validate_locals
vscode-customization
wilken/hcl2_upgrade-legacy-mode
wilken/implicitly-required-plugins-legacy-mode
wilken/packer-legacy-mode
wilken/packer-par-client
zs.draft-empty-page-check-script
1.5.0
v1.8.0
v1.7.10
v1.7.9
v1.7.8
v1.7.7
v1.7.6
v1.7.5
v1.7.4
v1.7.3
v1.7.2
v1.7.1
v1.7.0
v1.6.6
v1.6.5
v1.6.4
v1.6.3
v1.6.2
v1.6.1
v1.6.0
v1.5.6
v1.5.5
v1.5.4
v1.5.3
v1.5.2
v1.5.1
v1.5.0
v1.4.5
v1.4.4
v1.4.3
v1.4.2
v1.4.1
v1.4.0
v1.3.5
v1.3.4
v1.3.3
v1.3.2
v1.3.1
v1.3.0
v1.2.5
v1.2.4
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.4
v1.0.3
v1.0.2
v1.0.1
v1.0.0
v1.0.0-rc3
v1.0.0-rc2
v1.0.0-rc1
v0.12.3
v0.12.2
v0.12.1
v0.12.0
v0.11.0
v0.10.2
v0.10.1
v0.10.0
v0.9.0
v0.9.0-rc2
v0.8.6
v0.8.5
v0.8.3
v0.8.2
v0.8.1
v0.8.0
v0.7.5
v0.7.2
v0.7.1
v0.7.0
v0.6.1
v0.6.0
nightly
list
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dist.sh
+17
-1
dist.sh
with
17 additions
and
1 deletion
+17
-1
dist.sh
+
17
-
1
View file @
b279537b
...
...
@@ -30,14 +30,30 @@ xc() {
xc
}
# Make sure that if we're killed, we kill all our subprocseses
trap
"kill 0"
SIGINT SIGTERM EXIT
# Build our root project
xc
xc
&
# Build all the plugins
for
PLUGIN
in
$(
find ./plugin
-mindepth
1
-maxdepth
1
-type
d
)
;
do
PLUGIN_NAME
=
$(
basename
${
PLUGIN
}
)
(
pushd
${
PLUGIN
}
xc
popd
find ./pkg
-type
f
-name
${
PLUGIN_NAME
}
-execdir
mv
${
PLUGIN_NAME
}
packer-
${
PLUGIN_NAME
}
';'
)
&
done
# Wait for all the background tasks to finish
RESULT
=
"0"
for
job
in
`
jobs
-p
`
;
do
wait
$job
if
[
$?
-ne
0
]
;
then
RESULT
=
"1"
fi
done
exit
$RESULT
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help