SRVWORKDIR=/home/rpurdie
TARGETDIR=$SRVWORKDIR/httpd/autobuild-output
CURRDIR=`pwd`
-if [ "$CURRDIR" = "$SRVWORKDIR/poky/full-shihtzu/build" ]; then
+if [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/full-shihtzu/build" ]; then
ABTARGET="poky"
-elif [ "$CURRDIR" = "$SRVWORKDIR/poky/full-bleeding-shihtzu/build" ]; then
+elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/full-bleeding-shihtzu/build" ]; then
ABTARGET="poky-bleeding"
-elif [ "$CURRDIR" = "$SRVWORKDIR/poky/toolchain-shihtzu/build" ]; then
+elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/toolchain-shihtzu/build" ]; then
ABTARGET="toolchain"
-elif [ "$CURRDIR" = "$SRVWORKDIR/pokky/incremental-shihtzu/build" ]; then
+elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/incremental-shihtzu/build" ]; then
ABTARGET="incremental"
-elif [ "$CURRDIR" = "$SRVWORKDIR/poky/full-darwin-shihtzu/build" ]; then
+elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/moblin-incremental/build" ]; then
+ ABTARGET="moblin-incremental"
+elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/moblin-full/build" ]; then
+ ABTARGET="moblin-full"
+elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/full-darwin-shihtzu/build" ]; then
ABTARGET="darwin"
if [ ! -d "$CURRDIR/meta-darwin" ]; then
svn co http://svn.o-hand.com/repos/poky/branches/experimental/meta-darwin $CURRDIR/meta-darwin
if [ "xpreamble" = "x$1" ]; then
mkdir -p ./build/tmp/deploy/images
rm -f ./build/tmp/deploy/images/images-complete
- #svn info > ./build/tmp/deploy/images/svninfo
+ git log -1 > ./build/tmp/deploy/images/svninfo
exit 0
fi
retval=$?
-if [ "x$POSTPROCESS" != "x" ]; then
- cd ..
- $POSTPROCESS $ABTARGET $TARGETDIR
-fi
+#if [ "x$POSTPROCESS" != "x" ]; then
+# cd ..
+# $POSTPROCESS $ABTARGET $TARGETDIR
+#fi
exit $retval
cd ./build/tmp/deploy/
-LASTREV=`tail images/svninfo | grep Revision | cut -f 2 -d ' '`
-DEST=$TARGETDIR/$ABTARGET/$LASTREV/
+DEST=$TARGETDIR/$ABTARGET/
+BASE=`date +%Y%m%d`
+REV=1
+while [ -d "$DEST$FOO$BASE-$REV" ]
+do
+ REV=`expr $REV + 1`
+done
+
+DEST="$DEST$FOO$BASE-$REV"
mkdir -p $DEST
COMPRESS_FILES=()
)
FILES=(
- svninfo
+ gitinfo
`readlink images/zImage-akita.bin`
`readlink images/zImage-qemuarm.bin`
updater.sh.akita
if [ "x$ABTARGET" = "xtoolchain" ]; then
FILES=(
- svninfo
+ gitinfo
poky-*-toolchain-*.tar.bz2
)
fi
)
FILES=(
- svninfo
+ gitinfo
`readlink images/zImage-akita.bin`
`readlink images/zImage-c7x0.bin`
`readlink images/zImage-qemuarm.bin`
)
fi
+if [ "x$ABTARGET" = "xmoblin-incremental" -o "x$ABTARGET" = "xmoblin-full" ]; then
+ COMPRESS_FILES=(
+ moblin-image-live-netbook-*.hddimg
+ moblin-image-live-netbook-*.iso
+ moblin-image-netbook-netbook-*.ext3
+ moblin-image-sdk-live-netbook-*.hddimg
+ moblin-image-sdk-live-netbook-*.iso
+ moblin-image-sdk-netbook-*.ext3
+ )
+
+ FILES=(
+ gitinfo
+ `readlink images/bImage-netbook.bin`
+ moblin-image-netbook-netbook-*.cpio.gz
+ moblin-image-netbook-netbook-*.jffs2
+ moblin-image-sdk-netbook-*.cpio.gz
+ moblin-image-sdk-netbook-*.jffs2
+ )
+fi
+
+
for FILE in ${FILES[@]}; do
for FILE2 in `find -name $FILE`; do
if [ ! -e "$DEST/$FILE2" ]; then