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
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