diff options
author | Richard Purdie <richard@openedhand.com> | 2008-04-28 16:40:06 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-04-28 16:40:06 +0000 |
commit | 6b8df051477101ae1de8c27004bf2922ddacc4fc (patch) | |
tree | 2a46e8aa980a701e214d92d4f3b33b7a1a1c6198 /scripts/poky-autobuild-postprocess | |
parent | e88c64181a8ffd98c333b9ba7e5b3a522b83e65c (diff) | |
download | openembedded-core-6b8df051477101ae1de8c27004bf2922ddacc4fc.tar.gz openembedded-core-6b8df051477101ae1de8c27004bf2922ddacc4fc.tar.bz2 openembedded-core-6b8df051477101ae1de8c27004bf2922ddacc4fc.zip |
scripts: Update autobuilder scripts to run postprocess after each task completes
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4360 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'scripts/poky-autobuild-postprocess')
-rwxr-xr-x | scripts/poky-autobuild-postprocess | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/scripts/poky-autobuild-postprocess b/scripts/poky-autobuild-postprocess index 84ae25818a..f46ce6ac14 100755 --- a/scripts/poky-autobuild-postprocess +++ b/scripts/poky-autobuild-postprocess @@ -30,7 +30,7 @@ FILES=() if [ "x$DISTRO" = "xpoky-bleeding" ]; then COMPRESS_FILES=( - poky-image-sato-qemuarm-*.rootfs.ext2 + images/poky-image-sato-qemuarm-*.rootfs.ext2 ) FILES=( @@ -40,7 +40,6 @@ if [ "x$DISTRO" = "xpoky-bleeding" ]; then images/updater.sh.akita images/poky-image-sato-akita-*.rootfs.summary.jffs2 images/poky-image-sato-qemuarm-*.rootfs.tar.bz2 - images/poky-image-sato-qemuarm-*.rootfs.ext2 ) fi @@ -53,11 +52,11 @@ fi if [ "x$DISTRO" = "xpoky" ]; then COMPRESS_FILES=( - poky-image-sdk-qemuarm-*.rootfs.ext2 - poky-image-sdk-qemux86-*.rootfs.ext2 - poky-image-minimal-qemuarm-*.rootfs.ext2 - poky-image-minimal-qemux86-*.rootfs.ext2 - poky-image-sato-cd-*.iso + images/poky-image-sdk-qemuarm-*.rootfs.ext2 + images/poky-image-sdk-qemux86-*.rootfs.ext2 + images/poky-image-minimal-qemuarm-*.rootfs.ext2 + images/poky-image-minimal-qemux86-*.rootfs.ext2 + images/poky-image-sato-cd-*.iso ) FILES=( @@ -87,12 +86,8 @@ if [ "x$DISTRO" = "xpoky" ]; then images/poky-image-sato-spitz-*.rootfs.tar.gz images/poky-image-sdk-qemuarm-*.rootfs.tar.bz2 images/poky-image-sdk-qemux86-*.rootfs.tar.bz2 - images/poky-image-sdk-qemuarm-*.rootfs.ext2 - images/poky-image-sdk-qemux86-*.rootfs.ext2 images/poky-image-minimal-qemuarm-*.rootfs.tar.bz2 images/poky-image-minimal-qemux86-*.rootfs.tar.bz2 - images/poky-image-minimal-qemuarm-*.rootfs.ext2 - images/poky-image-minimal-qemux86-*.rootfs.ext2 images/poky-image-sdk-spitz-*.rootfs.tar.gz images/poky-image-sdk-nokia800-*.rootfs.jffs2 images/poky-image-sato-nokia770-*.rootfs.jffs2 @@ -102,7 +97,6 @@ if [ "x$DISTRO" = "xpoky" ]; then images/poky-image-sato-mx31litekit-*.rootfs.tar.gz images/poky-image-sato-htcuniversal-*.rootfs.tar.gz images/poky-image-sato-fic-gta01-*.rootfs.jffs2 - images/poky-image-sato-cd-*.iso images/poky-image-sato-mx31phy-*.jffs2 images/poky-image-sato-mx31ads-*.jffs2 `readlink -f images/updater-em-x270.ext2` @@ -110,15 +104,24 @@ if [ "x$DISTRO" = "xpoky" ]; then fi for FILE in ${FILES[@]}; do - #echo "-i $KEY $FILE $DEST" - cp $FILE $DEST + for $FILE2 in `find -name $FILE`; do + if [ ! -e "$DEST/$FILE2" ]; then + cp $FILE2 $DEST + fi + done done for FILE in ${COMPRESS_FILES[@]}; do - bzip2 $DEST/$FILE + for $FILE2 in `find -name $FILE`; do + if [ ! -e "$DEST/$FILE2.bz2" ]; then + bzip2 $FILE2 + cp $FILE2.bz2 $DEST + fi + done done -touch $DEST/complete - -#chgrp -R backup $DEST +if [ -e ./images-complete ]; then + touch $DEST/complete +fi chmod a+w -R $DEST + |