X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=blobdiff_plain;f=recipes%2Fpandora-system%2Fpandora-version.bb;h=afef88f887b5b474240631349f4d84aab820e3ec;hp=99d2fdf0acb76ba5834050bb5a305a802205dce0;hb=3dabccc5750267bec4c638c7e6746abd1565ef9a;hpb=120d83fa2b38ee39bda30d1262799128cfacf774 diff --git a/recipes/pandora-system/pandora-version.bb b/recipes/pandora-system/pandora-version.bb index 99d2fdf..afef88f 100644 --- a/recipes/pandora-system/pandora-version.bb +++ b/recipes/pandora-system/pandora-version.bb @@ -1,16 +1,21 @@ DESCRIPTION = "Installs /etc/op-version file." LICENSE = "Public Domain" -PR = "r0" +PR = "r21" do_install() { OLD_PWD=$PWD - opvf=${D}/${sysconfdir}/op-version cd `dirname "${FILE_DIRNAME}"` + tag=`git describe --abbrev=0` + commits=`git log --oneline ${tag}..HEAD | wc -l` + updv="" + test "$commits" = "0" || updv=" update $commits" install -d ${D}${sysconfdir}/ + opvf=${D}/${sysconfdir}/op-version echo "Tag Name: `git describe`" > ${opvf} echo "GIT-VERSION: `git log -n1 --pretty=oneline|awk '{print $1}'`" >> ${opvf} echo "Branch: `git branch | awk '/*/{print $2}'`" >> ${opvf} - echo "Version: 1.8.0.6 - R1.55 Codename Super Zaxxon" >> ${opvf} + echo "Version: 1.9.7.3 - R1.73 Codename Super Zaxxon" >> ${opvf} + echo "Display Ver: SuperZaxxon 1.73${updv}" >> ${opvf} echo "Image Builder: ${LOGNAME}@`cat /etc/hostname`" >> ${opvf} echo "Time Stamp: `date -R`" >> ${opvf} }