<commit_before>export IMAGE_BASENAME = "dreambox-image"

OPENDREAMBOX_COMMON = "\
	task-boot \
	task-opendreambox-base \
	task-opendreambox-dvbapi \
	task-opendreambox-ui \
"

# add bootstrap stuff
DEPENDS = "${OPENDREAMBOX_COMMON}"
IMAGE_INSTALL = "${OPENDREAMBOX_COMMON}"

# we don't want any locales, at least not in the common way.
IMAGE_LINGUAS = " "

inherit image

opendreambox_rootfs_postprocess() {
    curdir=$PWD
    cd ${IMAGE_ROOTFS}

    # generate /etc/image-version
	IMAGE_VERSION="270"
    IMAGE_DATE="$(date +%Y%m%d%H%M)"
    IMAGE_TYPE="0"
    echo "version=${IMAGE_TYPE}${IMAGE_VERSION}${IMAGE_DATE}" > etc/image-version
    echo "comment=${DISTRO_NAME}" >> etc/image-version
    echo "target=9" >> etc/image-version
    echo "creator=OpenEmbedded <<EMAIL>>" >> etc/image-version
    echo "url=http://www.dreamboxupdate.com/" >> etc/image-version
    echo "catalog=http://www.dreamboxupdate.com/" >> etc/image-version

    # because we're so used to it
    ln -s opkg usr/bin/ipkg || true
    ln -s opkg-cl usr/bin/ipkg-cl || true

    cd $curdir
}

ROOTFS_POSTPROCESS_COMMAND += "opendreambox_rootfs_postprocess; "

export NFO = '${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.nfo'

generate_nfo() {
    VER=`grep Version: "${IMAGE_ROOTFS}/usr/lib/ipkg/info/enigma2.control" | cut -b 10-12`
    echo "Enigma2: Experimental ${VER}" > ${NFO}
    echo "Machine: Dreambox ${MACHINE}" >> ${NFO}
    DATE=`date +%Y-%m-%d' '%H':'%M`
    echo "Date: ${DATE}" >> ${NFO}
    echo "Issuer: Dream Multimedia" >> ${NFO}
    echo "Link: ${DISTRO_FEED_URI}" >> ${NFO}
    if [ "${DESC}" != "" ]; then
        echo "Description: ${DESC}" >> ${NFO}
        echo "${DESC}" >> ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.desc
    fi
    MD5SUM=`md5sum ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.nfi | cut -b 1-32`
    echo "MD5: ${MD5SUM}" >> ${NFO}
}

do_rootfs_append_dm8000() {
    generate_nfo
}

<commit_msg>recipes/images/dreambox-image.bb: also create nfo files for 800 and 500hd<commit_after>export IMAGE_BASENAME = "dreambox-image"

OPENDREAMBOX_COMMON = "\
	task-boot \
	task-opendreambox-base \
	task-opendreambox-dvbapi \
	task-opendreambox-ui \
"

# add bootstrap stuff
DEPENDS = "${OPENDREAMBOX_COMMON}"
IMAGE_INSTALL = "${OPENDREAMBOX_COMMON}"

# we don't want any locales, at least not in the common way.
IMAGE_LINGUAS = " "

inherit image

opendreambox_rootfs_postprocess() {
    curdir=$PWD
    cd ${IMAGE_ROOTFS}

    # generate /etc/image-version
	IMAGE_VERSION="270"
    IMAGE_DATE="$(date +%Y%m%d%H%M)"
    IMAGE_TYPE="0"
    echo "version=${IMAGE_TYPE}${IMAGE_VERSION}${IMAGE_DATE}" > etc/image-version
    echo "comment=${DISTRO_NAME}" >> etc/image-version
    echo "target=9" >> etc/image-version
    echo "creator=OpenEmbedded <<EMAIL>>" >> etc/image-version
    echo "url=http://www.dreamboxupdate.com/" >> etc/image-version
    echo "catalog=http://www.dreamboxupdate.com/" >> etc/image-version

    # because we're so used to it
    ln -s opkg usr/bin/ipkg || true
    ln -s opkg-cl usr/bin/ipkg-cl || true

    cd $curdir
}

ROOTFS_POSTPROCESS_COMMAND += "opendreambox_rootfs_postprocess; "

export NFO = '${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.nfo'

generate_nfo() {
    VER=`grep Version: "${IMAGE_ROOTFS}/usr/lib/ipkg/info/enigma2.control" | cut -b 10-12`
    echo "Enigma2: Experimental ${VER}" > ${NFO}
    echo "Machine: Dreambox ${MACHINE}" >> ${NFO}
    DATE=`date +%Y-%m-%d' '%H':'%M`
    echo "Date: ${DATE}" >> ${NFO}
    echo "Issuer: Dream Multimedia" >> ${NFO}
    echo "Link: ${DISTRO_FEED_URI}" >> ${NFO}
    if [ "${DESC}" != "" ]; then
        echo "Description: ${DESC}" >> ${NFO}
        echo "${DESC}" >> ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.desc
    fi
    MD5SUM=`md5sum ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.nfi | cut -b 1-32`
    echo "MD5: ${MD5SUM}" >> ${NFO}
}

do_rootfs_append_dm500hd() {
    generate_nfo
}

do_rootfs_append_dm800() {
    generate_nfo
}

do_rootfs_append_dm8000() {
    generate_nfo
}


{'fraction_non_alphanumeric': 0.1710861805201428, 'fraction_numerical': 0.014278429372768995, 'mean_word_length': 3.8134969325153376, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3496106', 'n_tokens_mistral': 1588, 'n_tokens_neox': 1521, 'n_words': 286}