From owner-freebsd-current@FreeBSD.ORG Sat Oct 22 16:07:22 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB34A1065702; Sat, 22 Oct 2011 16:07:22 +0000 (UTC) (envelope-from nalitoja@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2BD128FC0C; Sat, 22 Oct 2011 16:07:21 +0000 (UTC) Received: by eyd10 with SMTP id 10so6162508eyd.13 for ; Sat, 22 Oct 2011 09:07:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=HuJYHdiZkODrdndOy0NWsqbxByjr8DfHIMkHyjwzLOU=; b=sLZorBmfKMh9IhFC4h7u9HasdznoUAAJyzvWBoXenqUnqqCLSDU8IQ5Heb3h8ADWnK erz0y3uzM4gGJ5QuWw9mrGzAsoI09lFovuvqyRev7IHGQxuUyW9ylfvP5cA0YMHnufLf ixGEFUMT0CS/I5jvPuYtWPfaWYUWcQrz5LpqM= Received: by 10.223.14.134 with SMTP id g6mr31988519faa.11.1319299640932; Sat, 22 Oct 2011 09:07:20 -0700 (PDT) Received: from nil (lumumba.torservers.net. [77.247.181.163]) by mx.google.com with ESMTPS id l11sm29740966faj.19.2011.10.22.09.07.06 (version=SSLv3 cipher=OTHER); Sat, 22 Oct 2011 09:07:20 -0700 (PDT) From: Nali Toja To: Olivier Smedts In-Reply-To: (Olivier Smedts's message of "Sat, 22 Oct 2011 17:39:03 +0200") Date: Sat, 22 Oct 2011 16:04:34 +0000 Message-ID: <86aa8tovvx.fsf@gmail.com> References: <20111020114844.GK59810@albert.catwhisker.org> <20111020122121.GL59810@albert.catwhisker.org> <201110211636.05917.jhb@freebsd.org> <20111021211221.GV59810@albert.catwhisker.org> <4EA21842.5000808@FreeBSD.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Garrett Cooper , Craig Rodrigues , Doug Barton , freebsd-current@freebsd.org Subject: Re: sys/conf/newvers.sh vs. subversion-1.7 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Oct 2011 16:07:22 -0000 Olivier Smedts writes: >> >> $(svn info | awk '/^Revision:/ {print $2}') >> >> is what I use in my installkernel wrapper script. Granted, I didn't know >> about svnversion some time later, but it appears that svnversion broke s= ome >> things by consolidating the .svn directories as Chris shows above with t= he >> 'exported' line. > > Won't work for localized builds : > $ echo $LANG > fr_FR.ISO8859-15 > $ pwd > /usr/src > $ $(svn info | awk '/^Revision:/ {print $2}') > $ svn info While you can try to set LC_MESSAGES to `C' locale subversion also supports XML output $ echo $(svn info --xml | awk -F\" '/revision/ && ++i > 1 { print $2 }') 226629 Unlike `svnversion' it doesn't show whether the checked out sources are `M' (modified) or not. Not that I found it useful compared to `svn st -q' though. > Chemin=C2=A0: . > Chemin racine de la copie de travail : /usr/src > URL=C2=A0: http://svn.freebsd.org/base/stable/9 > Racine du d=C3=A9p=C3=B4t=C2=A0: http://svn.freebsd.org/base > UUID du d=C3=A9p=C3=B4t=C2=A0: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f > R=C3=A9vision=C2=A0: 226629 > [...]