13
by Tony George
Update build scripts |
1 |
#!/bin/bash
|
2 |
||
3 |
backup=`pwd` |
|
4 |
DIR="$( cd "$( dirname "$0" )" && pwd )" |
|
5 |
cd "$DIR" |
|
6 |
||
36
by Tony George
Improved detection of disk partitions |
7 |
#check for errors
|
8 |
if [ $? -ne 0 ]; then |
|
9 |
cd "$backup" |
|
10 |
echo "Failed" |
|
11 |
exit 1 |
|
12 |
fi
|
|
13 |
||
13
by Tony George
Update build scripts |
14 |
rm -rf ../builds |
36
by Tony George
Improved detection of disk partitions |
15 |
|
13
by Tony George
Update build scripts |
16 |
bzr builddeb --source --native --build-dir ../builds/temp --result-dir ../builds |
36
by Tony George
Improved detection of disk partitions |
17 |
|
18 |
#check for errors
|
|
19 |
if [ $? -ne 0 ]; then |
|
20 |
cd "$backup" |
|
21 |
echo "Failed" |
|
22 |
exit 1 |
|
23 |
fi
|
|
24 |
||
13
by Tony George
Update build scripts |
25 |
ls -l ../builds |
26 |
||
27 |
cd "$backup" |