scripts/image_release: bundle MACH_KERNEL if avaible

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-05-21 23:41:48 +02:00
parent 82c6fba858
commit d23f78bc30

View File

@ -46,10 +46,17 @@ RELEASE_DIR="target/$DISTRONAME-$TARGET_VERSION"
cp $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.system $RELEASE_DIR/target/SYSTEM
cp $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.kernel $RELEASE_DIR/target/KERNEL
if [ -f $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.mach_kernel ]; then
cp $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.mach_kernel $RELEASE_DIR/target/MACH_KERNEL
fi
# create md5sum's
( cd $RELEASE_DIR;
md5sum -t target/SYSTEM > target/SYSTEM.md5;
md5sum -t target/KERNEL > target/KERNEL.md5;
if [ -f target/MACH_KERNEL ]; then
md5sum -t target/MACH_KERNEL > target/MACH_KERNEL.md5;
fi
)
# create target directory