From: Chris Larson Date: Wed, 19 Aug 2009 21:24:19 +0000 (-0700) Subject: distro-version: new general recipe, based on angstrom-version. X-Git-Tag: Release-2010-05/1~2650 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7001e26671dc76aa5f6c4b4bc3a7d341d012b024;p=openembedded.git distro-version: new general recipe, based on angstrom-version. Signed-off-by: Chris Larson --- diff --git a/recipes/distro-version/distro-version.bb b/recipes/distro-version/distro-version.bb new file mode 100644 index 0000000000..269186f590 --- /dev/null +++ b/recipes/distro-version/distro-version.bb @@ -0,0 +1,17 @@ +LICENSE = "MIT" + +PV = "${DISTRO_VERSION}" + +INHIBIT_DEFAULT_DEPS = "1" +PACKAGES = "${PN}" +PACKAGE_ARCH = "all" + +export METADATA_REVISION +export METADATA_BRANCH + +do_install() { + mkdir -p ${D}${sysconfdir} + echo "${DISTRO_NAME} ${DISTRO_VERSION}" > ${D}${sysconfdir}/${DISTRO}-version + echo "Built from branch: ${METADATA_BRANCH}" >> ${D}${sysconfdir}/${DISTRO}-version + echo "Revision: ${METADATA_REVISION}" >> ${D}${sysconfdir}/${DISTRO}-version +}