summaryrefslogtreecommitdiff
path: root/post-build-create-image-manifest.sh
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2013-09-14 09:33:35 +0300
committerFathi Boudra <fathi.boudra@linaro.org>2013-09-14 09:33:35 +0300
commit672641db35c9190048e92e1208bda2ca190fd2e8 (patch)
treecddbbf097e9936f8f836c55e1913b8a65dbe4d15 /post-build-create-image-manifest.sh
parent73cf3922345a5aebfad3a45f0ddc963339e672bd (diff)
post-build-create-image-manifest.sh: support .rootfs.*.gz (e.g initramfs image is .rootfs.cpio.gz)
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'post-build-create-image-manifest.sh')
-rw-r--r--post-build-create-image-manifest.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/post-build-create-image-manifest.sh b/post-build-create-image-manifest.sh
index 8bd8cbb..50452cd 100644
--- a/post-build-create-image-manifest.sh
+++ b/post-build-create-image-manifest.sh
@@ -8,10 +8,10 @@ if [ -n "${WORKSPACE}" ]; then
deploy_dir=`find /mnt/ci_build/workspace/tmp -type d -name deploy`
fi
cd ${deploy_dir}/images
- for img in *.rootfs.tar.gz
+ for img in *.rootfs.*.gz
do
if ! [ -h $img ] ; then
- img=`basename $img .rootfs.tar.gz`
+ img=`echo $img | cut -d'.' -f1`
cp -a ../licenses/$img/license.manifest $img.manifest
mv $img.* ${WORKSPACE}/out
fi