summaryrefslogtreecommitdiffstats
path: root/scripts/poky-autobuild-postprocess
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/poky-autobuild-postprocess')
-rwxr-xr-xscripts/poky-autobuild-postprocess47
1 files changed, 27 insertions, 20 deletions
diff --git a/scripts/poky-autobuild-postprocess b/scripts/poky-autobuild-postprocess
index d9ba72d14d..8262204268 100755
--- a/scripts/poky-autobuild-postprocess
+++ b/scripts/poky-autobuild-postprocess
@@ -1,30 +1,37 @@
1#!/bin/sh 1#!/bin/sh
2 2
3TARGETDIR=/srv/poky/autobuild-output 3# Poky Automated Build Server Post Processing Script
4if [ "$1" = "/srv/poky/autobuild/full-shihtzu/build" ]; then 4#
5 DISTRO="poky" 5# Copyright (C) 2006-2007 OpenedHand Ltd.
6fi 6#
7if [ "$1" = "/srv/poky/autobuild/full-bleeding-shihtzu/build" ]; then 7# This program is free software; you can redistribute it and/or modify
8 DISTRO="poky-bleeding" 8# it under the terms of the GNU General Public License as published by
9fi 9# the Free Software Foundation; either version 2 of the License, or
10if [ "$1" = "/srv/poky/autobuild/toolchain-shihtzu/build" ]; then 10# (at your option) any later version.
11 DISTRO="toolchain" 11#
12fi 12# This program is distributed in the hope that it will be useful,
13if [ "$1" = "/srv/poky/autobuild/incremental-shihtzu/build" ]; then 13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14 DISTRO="incremental" 14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15fi 15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
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
20
21ABTARGET=$1
22TARGETDIR=$2
16 23
17cd $1/build/tmp/deploy/ 24cd ./build/tmp/deploy/
18 25
19LASTREV=`tail images/svninfo | grep Revision | cut -f 2 -d ' '` 26LASTREV=`tail images/svninfo | grep Revision | cut -f 2 -d ' '`
20DEST=$TARGETDIR/$DISTRO/$LASTREV/ 27DEST=$TARGETDIR/$ABTARGET/$LASTREV/
21 28
22mkdir -p $DEST 29mkdir -p $DEST
23 30
24COMPRESS_FILES=() 31COMPRESS_FILES=()
25FILES=() 32FILES=()
26 33
27if [ "x$DISTRO" = "xpoky-bleeding" ]; then 34if [ "x$ABTARGET" = "xpoky-bleeding" ]; then
28 COMPRESS_FILES=( 35 COMPRESS_FILES=(
29 poky-image-sato-qemuarm-*.rootfs.ext2 36 poky-image-sato-qemuarm-*.rootfs.ext2
30 ) 37 )
@@ -39,14 +46,14 @@ if [ "x$DISTRO" = "xpoky-bleeding" ]; then
39 ) 46 )
40fi 47fi
41 48
42if [ "x$DISTRO" = "xtoolchain" ]; then 49if [ "x$ABTARGET" = "xtoolchain" ]; then
43 FILES=( 50 FILES=(
44 svninfo 51 svninfo
45 poky-*-toolchain-*.tar.bz2 52 poky-*-toolchain-*.tar.bz2
46 ) 53 )
47fi 54fi
48 55
49if [ "x$DISTRO" = "xpoky" ]; then 56if [ "x$ABTARGET" = "xpoky" ]; then
50 COMPRESS_FILES=( 57 COMPRESS_FILES=(
51 poky-image-sdk-qemuarm-*.rootfs.ext2 58 poky-image-sdk-qemuarm-*.rootfs.ext2
52 poky-image-sdk-qemux86-*.rootfs.ext2 59 poky-image-sdk-qemux86-*.rootfs.ext2
@@ -116,8 +123,8 @@ for FILE in ${COMPRESS_FILES[@]}; do
116 done 123 done
117done 124done
118 125
119if [ -e ./images-complete ]; then 126if [ -e ./images/images-complete ]; then
120 touch $DEST/complete 127 touch $DEST/complete
121fi 128fi
122chmod a+w -R $DEST || true 129chmod a+w -R $DEST 2> /dev/null || true
123 130