Date: Thu, 3 Oct 2013 01:53:17 +0000 (UTC) From: Rui Paulo <rpaulo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r256014 - head/sys/conf Message-ID: <201310030153.r931rHGk002021@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rpaulo Date: Thu Oct 3 01:53:17 2013 New Revision: 256014 URL: http://svnweb.freebsd.org/changeset/base/256014 Log: Append the Git branch to the version string. Approved by: re (gjb) Modified: head/sys/conf/newvers.sh Modified: head/sys/conf/newvers.sh ============================================================================== --- head/sys/conf/newvers.sh Thu Oct 3 01:18:06 2013 (r256013) +++ head/sys/conf/newvers.sh Thu Oct 3 01:53:17 2013 (r256014) @@ -159,6 +159,10 @@ if [ -n "$git_cmd" ] ; then git=" ${git}" fi fi + git_b=`$git_cmd rev-parse --abbrev-ref HEAD` + if [ -n "$git_b" ] ; then + git="${git}(${git_b})" + fi if $git_cmd --work-tree=${SYSDIR}/.. diff-index \ --name-only HEAD | read dummy; then git="${git}-dirty"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310030153.r931rHGk002021>