blob: f52397d55c745045fdaa4f2a46b61efbf1bfe368 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#!/bin/bash
echo " Creating ODE sandbox..."
# Ensure backing build is accessible.
if [ ! -d "$BACKING_BUILD" ];
then
echo " Cannot access the backing build: $BACKING_BUILD"
exit -1
fi
SANDBOXRC=${SANDBOXROOT}/sbesandboxrc;
# Delete existing sandbox if it exists.
if [ -d "$SANDBOXBASE" ];
then
# prompt the user to delete the sanbox or not if exist
echo -ne " Remove existing sandbox? {y/n}:"
read input
if [ "$input" == "y" ];then
echo " Executing : mksb -undo -auto -rc $SANDBOXRC -dir $SANDBOXROOT -sb $SANDBOXNAME"
mksb -undo -auto -rc $SANDBOXRC -dir $SANDBOXROOT -sb $SANDBOXNAME
else
exit 0
fi
fi
if [ -d "$SANDBOXBASE" ];
then
rm -rf $SANDBOXBASE
rm -f $SANDBOXRC
fi
# Create sandbox.
echo " Sandbox backing build = $BACKING_BUILD"
echo " mksb -rc $SANDBOXRC -dir $SANDBOXROOT -back $BACKING_BUILD -sb $SANDBOXNAME -m ppc -auto"
mksb -rc $SANDBOXRC -dir $SANDBOXROOT -back $BACKING_BUILD -sb $SANDBOXNAME -m ppc -auto || exit -1
|