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
[EMAIL PROTECTED]
[EMAIL PROTECTED]

_______________________________________________
devel mailing list
[email protected]
https://lists.openmoko.org/mailman/listinfo/devel

Reply via email to