Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
ebd0e340
Commit
ebd0e340
authored
16 years ago
by
Julien Bonjean
Browse files
Options
Downloads
Patches
Plain Diff
[#1422] Added automatic VM shutdown when building on more than one VM
parent
19197c38
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/build-system/launch-build-machine.sh
+21
-15
21 additions, 15 deletions
tools/build-system/launch-build-machine.sh
with
21 additions
and
15 deletions
tools/build-system/launch-build-machine.sh
+
21
−
15
View file @
ebd0e340
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
# Author: Julien Bonjean (julien@bonjean.info)
# Author: Julien Bonjean (julien@bonjean.info)
#
#
# Creation Date: 2009-04-20
# Creation Date: 2009-04-20
# Last Modified: 2009-05-1
4
1
7
:5
7:3
5 -0400
# Last Modified: 2009-05-1
5
1
0
:5
0:5
5 -0400
#####################################################
#####################################################
#
#
...
@@ -89,20 +89,6 @@ echo " | SFLPhone build system |"
...
@@ -89,20 +89,6 @@ echo " | SFLPhone build system |"
echo
"
\\
***********************/"
echo
"
\\
***********************/"
echo
echo
cd
${
SCRIPTS_DIR
}
if
[
"
$?
"
-ne
"0"
]
;
then
echo
" !! Cannot cd to working directory"
exit
-1
fi
WHO
=
`
whoami
`
if
[
"
${
WHO
}
"
!=
"
${
USER
}
"
]
;
then
echo
"!! Please use user
${
USER
}
to run this script"
exit
-1
;
fi
for
PARAMETER
in
$*
for
PARAMETER
in
$*
do
do
case
${
PARAMETER
}
in
case
${
PARAMETER
}
in
...
@@ -145,6 +131,26 @@ do
...
@@ -145,6 +131,26 @@ do
esac
esac
done
done
# if more than one VM will be launched, automatically stop running VMs
if
[
"
${#
MACHINES
[@]
}
"
-gt
"1"
]
;
then
VBoxManage list runningvms |
tail
-n
+5 |
awk
'{print $1}'
| xargs
-i
VBoxManage controlvm
{}
poweroff
fi
# change to working directory
cd
${
SCRIPTS_DIR
}
if
[
"
$?
"
-ne
"0"
]
;
then
echo
" !! Cannot cd to working directory"
exit
-1
fi
WHO
=
`
whoami
`
if
[
"
${
WHO
}
"
!=
"
${
USER
}
"
]
;
then
echo
"!! Please use user
${
USER
}
to run this script"
exit
-1
;
fi
# logging
# logging
mkdir
${
PACKAGING_RESULT_DIR
}
2>/dev/null
mkdir
${
PACKAGING_RESULT_DIR
}
2>/dev/null
if
[
${
DO_LOGGING
}
]
;
then
if
[
${
DO_LOGGING
}
]
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment