diff options
author | Richard Purdie <richard@openedhand.com> | 2008-04-29 21:01:34 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-04-29 21:01:34 +0000 |
commit | da27611bc9c8506b9411ce9968f71bd229ca0654 (patch) | |
tree | 4318cc51f6a80d489e8cadd848ea949d4677652c /scripts/poky-autobuild | |
parent | 5d5fab77cf9616bf62023c202b38f309f8bbf189 (diff) | |
download | poky-da27611bc9c8506b9411ce9968f71bd229ca0654.tar.gz |
poky-autobuild: Attempt to clean up scripts slightly
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4371 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'scripts/poky-autobuild')
-rwxr-xr-x | scripts/poky-autobuild | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/scripts/poky-autobuild b/scripts/poky-autobuild index 752e0a7bb0..d283b668d3 100755 --- a/scripts/poky-autobuild +++ b/scripts/poky-autobuild | |||
@@ -1,6 +1,6 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | # Poky Build Enviroment Setup Script | 3 | # Poky Automated Build Server Enviroment Setup Script |
4 | # | 4 | # |
5 | # Copyright (C) 2006-2007 OpenedHand Ltd. | 5 | # Copyright (C) 2006-2007 OpenedHand Ltd. |
6 | # | 6 | # |
@@ -18,11 +18,17 @@ | |||
18 | # along with this program; if not, write to the Free Software | 18 | # along with this program; if not, write to the Free Software |
19 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 19 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 | 20 | ||
21 | 21 | TARGETDIR=/srv/poky/autobuild-output | |
22 | #if test x"$0" = x"./poky-init-build-env"; then | 22 | CURRDIR=`pwd` |
23 | # echo "Error: Run via '. ./poky-init-build-env'" | 23 | if [ "$CURRDIR" = "/srv/poky/autobuild/full-shihtzu/build" ]; then |
24 | # exit 1 | 24 | ABTARGET="poky" |
25 | #fi | 25 | elif [ "$CURRDIR" = "/srv/poky/autobuild/full-bleeding-shihtzu/build" ]; then |
26 | ABTARGET="poky-bleeding" | ||
27 | elif [ "$CURRDIR" = "/srv/poky/autobuild/toolchain-shihtzu/build" ]; then | ||
28 | ABTARGET="toolchain" | ||
29 | elif [ "$CURRDIR" = "/srv/poky/autobuild/incremental-shihtzu/build" ]; then | ||
30 | ABTARGET="incremental" | ||
31 | fi | ||
26 | 32 | ||
27 | if [ "xpreamble" = "x$1" ]; then | 33 | if [ "xpreamble" = "x$1" ]; then |
28 | mkdir -p ./build/tmp/deploy/images | 34 | mkdir -p ./build/tmp/deploy/images |
@@ -38,9 +44,9 @@ POSTPROCESS=`which poky-autobuild-postprocess` | |||
38 | if [ "xcomplete" = "x$1" ]; then | 44 | if [ "xcomplete" = "x$1" ]; then |
39 | touch ./tmp/deploy/images/images-complete | 45 | touch ./tmp/deploy/images/images-complete |
40 | chmod a+w ./tmp/deploy/images/images-complete | 46 | chmod a+w ./tmp/deploy/images/images-complete |
41 | cd .. | ||
42 | if [ "x$POSTPROCESS" != "x" ]; then | 47 | if [ "x$POSTPROCESS" != "x" ]; then |
43 | $POSTPROCESS `pwd` | 48 | cd .. |
49 | $POSTPROCESS $ABTARGET $TARGETDIR | ||
44 | fi | 50 | fi |
45 | exit 0 | 51 | exit 0 |
46 | fi | 52 | fi |
@@ -59,9 +65,8 @@ fi | |||
59 | 65 | ||
60 | bitbake $@ | 66 | bitbake $@ |
61 | 67 | ||
62 | cd .. | ||
63 | |||
64 | if [ "x$POSTPROCESS" != "x" ]; then | 68 | if [ "x$POSTPROCESS" != "x" ]; then |
65 | $POSTPROCESS `pwd` | 69 | cd .. |
70 | $POSTPROCESS $ABTARGET $TARGETDIR | ||
66 | fi | 71 | fi |
67 | 72 | ||