From owner-svn-src-head@FreeBSD.ORG Wed Mar 10 01:00:38 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 206781065672; Wed, 10 Mar 2010 01:00:38 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0FE6C8FC13; Wed, 10 Mar 2010 01:00:38 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o2A10bYQ082111; Wed, 10 Mar 2010 01:00:37 GMT (envelope-from dougb@svn.freebsd.org) Received: (from dougb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o2A10bmN082109; Wed, 10 Mar 2010 01:00:37 GMT (envelope-from dougb@svn.freebsd.org) Message-Id: <201003100100.o2A10bmN082109@svn.freebsd.org> From: Doug Barton Date: Wed, 10 Mar 2010 01:00:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r204937 - head/sys/conf X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2010 01:00:38 -0000 Author: dougb Date: Wed Mar 10 01:00:37 2010 New Revision: 204937 URL: http://svn.freebsd.org/changeset/base/204937 Log: Revert to r197433, the more recent change doesn't work for the common case, and has not been well received. Modified: head/sys/conf/newvers.sh Modified: head/sys/conf/newvers.sh ============================================================================== --- head/sys/conf/newvers.sh Wed Mar 10 00:47:09 2010 (r204936) +++ head/sys/conf/newvers.sh Wed Mar 10 01:00:37 2010 (r204937) @@ -88,15 +88,15 @@ v=`cat version` u=${USER:-root} d=`pwd` i=`${MAKE:-make} -V KERN_IDENT` case "$d" in -*/compile/*) +*/sys/*) SRCDIR=${d##*obj} if [ -n "$MACHINE" ]; then SRCDIR=${SRCDIR##/$MACHINE} fi - SRCDIR=$(cd ${SRCDIR%%/compile/*}/.. && pwd) + SRCDIR=${SRCDIR%%/sys/*} for dir in /bin /usr/bin /usr/local/bin; do - if [ -d "${SRCDIR}/.svn" -a -x "${dir}/svnversion" ] ; then + if [ -d "${SRCDIR}/sys/.svn" -a -x "${dir}/svnversion" ] ; then svnversion=${dir}/svnversion break fi @@ -107,7 +107,7 @@ case "$d" in done if [ -n "$svnversion" ] ; then - svn=" r`cd ${SRCDIR} && $svnversion`" + svn=" r`cd ${SRCDIR}/sys && $svnversion`" fi if [ -n "$git_cmd" ] ; then git=`$git_cmd rev-parse --verify --short HEAD 2>/dev/null`