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 | poky-6b8df051477101ae1de8c27004bf2922ddacc4fc.tar.gz |
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=() | |||
30 | 30 | ||
31 | if [ "x$DISTRO" = "xpoky-bleeding" ]; then | 31 | if [ "x$DISTRO" = "xpoky-bleeding" ]; then |
32 | COMPRESS_FILES=( | 32 | COMPRESS_FILES=( |
33 | poky-image-sato-qemuarm-*.rootfs.ext2 | 33 | images/poky-image-sato-qemuarm-*.rootfs.ext2 |
34 | ) | 34 | ) |
35 | 35 | ||
36 | FILES=( | 36 | FILES=( |
@@ -40,7 +40,6 @@ if [ "x$DISTRO" = "xpoky-bleeding" ]; then | |||
40 | images/updater.sh.akita | 40 | images/updater.sh.akita |
41 | images/poky-image-sato-akita-*.rootfs.summary.jffs2 | 41 | images/poky-image-sato-akita-*.rootfs.summary.jffs2 |
42 | images/poky-image-sato-qemuarm-*.rootfs.tar.bz2 | 42 | images/poky-image-sato-qemuarm-*.rootfs.tar.bz2 |
43 | images/poky-image-sato-qemuarm-*.rootfs.ext2 | ||
44 | ) | 43 | ) |
45 | fi | 44 | fi |
46 | 45 | ||
@@ -53,11 +52,11 @@ fi | |||
53 | 52 | ||
54 | if [ "x$DISTRO" = "xpoky" ]; then | 53 | if [ "x$DISTRO" = "xpoky" ]; then |
55 | COMPRESS_FILES=( | 54 | COMPRESS_FILES=( |
56 | poky-image-sdk-qemuarm-*.rootfs.ext2 | 55 | images/poky-image-sdk-qemuarm-*.rootfs.ext2 |
57 | poky-image-sdk-qemux86-*.rootfs.ext2 | 56 | images/poky-image-sdk-qemux86-*.rootfs.ext2 |
58 | poky-image-minimal-qemuarm-*.rootfs.ext2 | 57 | images/poky-image-minimal-qemuarm-*.rootfs.ext2 |
59 | poky-image-minimal-qemux86-*.rootfs.ext2 | 58 | images/poky-image-minimal-qemux86-*.rootfs.ext2 |
60 | poky-image-sato-cd-*.iso | 59 | images/poky-image-sato-cd-*.iso |
61 | ) | 60 | ) |
62 | 61 | ||
63 | FILES=( | 62 | FILES=( |
@@ -87,12 +86,8 @@ if [ "x$DISTRO" = "xpoky" ]; then | |||
87 | images/poky-image-sato-spitz-*.rootfs.tar.gz | 86 | images/poky-image-sato-spitz-*.rootfs.tar.gz |
88 | images/poky-image-sdk-qemuarm-*.rootfs.tar.bz2 | 87 | images/poky-image-sdk-qemuarm-*.rootfs.tar.bz2 |
89 | images/poky-image-sdk-qemux86-*.rootfs.tar.bz2 | 88 | images/poky-image-sdk-qemux86-*.rootfs.tar.bz2 |
90 | images/poky-image-sdk-qemuarm-*.rootfs.ext2 | ||
91 | images/poky-image-sdk-qemux86-*.rootfs.ext2 | ||
92 | images/poky-image-minimal-qemuarm-*.rootfs.tar.bz2 | 89 | images/poky-image-minimal-qemuarm-*.rootfs.tar.bz2 |
93 | images/poky-image-minimal-qemux86-*.rootfs.tar.bz2 | 90 | images/poky-image-minimal-qemux86-*.rootfs.tar.bz2 |
94 | images/poky-image-minimal-qemuarm-*.rootfs.ext2 | ||
95 | images/poky-image-minimal-qemux86-*.rootfs.ext2 | ||
96 | images/poky-image-sdk-spitz-*.rootfs.tar.gz | 91 | images/poky-image-sdk-spitz-*.rootfs.tar.gz |
97 | images/poky-image-sdk-nokia800-*.rootfs.jffs2 | 92 | images/poky-image-sdk-nokia800-*.rootfs.jffs2 |
98 | images/poky-image-sato-nokia770-*.rootfs.jffs2 | 93 | images/poky-image-sato-nokia770-*.rootfs.jffs2 |
@@ -102,7 +97,6 @@ if [ "x$DISTRO" = "xpoky" ]; then | |||
102 | images/poky-image-sato-mx31litekit-*.rootfs.tar.gz | 97 | images/poky-image-sato-mx31litekit-*.rootfs.tar.gz |
103 | images/poky-image-sato-htcuniversal-*.rootfs.tar.gz | 98 | images/poky-image-sato-htcuniversal-*.rootfs.tar.gz |
104 | images/poky-image-sato-fic-gta01-*.rootfs.jffs2 | 99 | images/poky-image-sato-fic-gta01-*.rootfs.jffs2 |
105 | images/poky-image-sato-cd-*.iso | ||
106 | images/poky-image-sato-mx31phy-*.jffs2 | 100 | images/poky-image-sato-mx31phy-*.jffs2 |
107 | images/poky-image-sato-mx31ads-*.jffs2 | 101 | images/poky-image-sato-mx31ads-*.jffs2 |
108 | `readlink -f images/updater-em-x270.ext2` | 102 | `readlink -f images/updater-em-x270.ext2` |
@@ -110,15 +104,24 @@ if [ "x$DISTRO" = "xpoky" ]; then | |||
110 | fi | 104 | fi |
111 | 105 | ||
112 | for FILE in ${FILES[@]}; do | 106 | for FILE in ${FILES[@]}; do |
113 | #echo "-i $KEY $FILE $DEST" | 107 | for $FILE2 in `find -name $FILE`; do |
114 | cp $FILE $DEST | 108 | if [ ! -e "$DEST/$FILE2" ]; then |
109 | cp $FILE2 $DEST | ||
110 | fi | ||
111 | done | ||
115 | done | 112 | done |
116 | 113 | ||
117 | for FILE in ${COMPRESS_FILES[@]}; do | 114 | for FILE in ${COMPRESS_FILES[@]}; do |
118 | bzip2 $DEST/$FILE | 115 | for $FILE2 in `find -name $FILE`; do |
116 | if [ ! -e "$DEST/$FILE2.bz2" ]; then | ||
117 | bzip2 $FILE2 | ||
118 | cp $FILE2.bz2 $DEST | ||
119 | fi | ||
120 | done | ||
119 | done | 121 | done |
120 | 122 | ||
121 | touch $DEST/complete | 123 | if [ -e ./images-complete ]; then |
122 | 124 | touch $DEST/complete | |
123 | #chgrp -R backup $DEST | 125 | fi |
124 | chmod a+w -R $DEST | 126 | chmod a+w -R $DEST |
127 | |||