scripts/image: add support for release build scripts in projects folder

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-05-25 16:36:42 +02:00
parent cd743f3b2c
commit 4a03e9d340

View File

@ -225,10 +225,14 @@ IMAGE_NAME="$DISTRONAME-$TARGET_VERSION"
if [ -d "$BOOTLOADER_DIR"/files ]; then
cp -R $BOOTLOADER_DIR/files/* $RELEASE_DIR
fi
if [ -f "$BOOTLOADER_DIR"/release ]; then
if [ -f $PROJECT_DIR/$PROJECT/bootloader/release ]; then
. $PROJECT_DIR/$PROJECT/bootloader/release
elif [ -f "$BOOTLOADER_DIR"/release ]; then
. $BOOTLOADER_DIR/release
fi
fi
cp $ROOT/README* $RELEASE_DIR
cp $ROOT/CHANGELOG* $RELEASE_DIR
cp -R $CONFIG/release/openelec.ico $RELEASE_DIR