Kernel versioning [was Re: Kernel package and modules]
Cesar Eduardo Barros
cesarb at cesarb.net
Wed Aug 6 01:45:22 CEST 2008
Mike (mwester) escreveu:
> Here's a fragment, based on what we've seen earlier, that works
> with the OM git repo:
>
> if [ -d .git ] ; then
> HEAD=`git show --pretty=oneline | head -n1 | cut -d' ' -f1 | cut -b1-16`
> BRANCH=`git branch | grep ^\* | cut -d' ' -f2`
> export HOSTNAME_OVERRIDE=${BRANCH}.${HEAD}
> fi
Why not "git describe"?
--
Cesar Eduardo Barros
cesarb at cesarb.net
cesar.barros at gmail.com
More information about the devel
mailing list