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" _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"