From owner-freebsd-current@FreeBSD.ORG Sat Oct 22 19:24:46 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 4BB8E106566C; Sat, 22 Oct 2011 19:24:46 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id E46808FC18; Sat, 22 Oct 2011 19:24:45 +0000 (UTC) Received: by yxt33 with SMTP id 33so1203892yxt.13 for ; Sat, 22 Oct 2011 12:24:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=dgcknLMmCNsWEQPFzGLG3kfPnezbx5afE6O44OwDhSk=; b=dcf46WcwSdve8+vObwvZOBad6o4i5zYwlHHocNOtBRAaAmMOrzYcDIinhm2UTcAiTi cUVbn3zYDbgYXRRHlXy0AtVqb1pZM2a/IdYj5gbts/+HoNt9aqlEoJXGFb5ei460xgwP BJ7V/IQ2n8qIUKFP+jAyIXjxVQx/ZeWcGim7A= Received: by 10.68.57.102 with SMTP id h6mr36780306pbq.7.1319311484650; Sat, 22 Oct 2011 12:24:44 -0700 (PDT) Received: from [192.168.20.4] (c-24-6-49-154.hsd1.ca.comcast.net. [24.6.49.154]) by mx.google.com with ESMTPS id jm5sm45599349pbc.1.2011.10.22.12.24.43 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 22 Oct 2011 12:24:43 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=utf-8 From: Garrett Cooper In-Reply-To: <4EA315C6.4040305@FreeBSD.org> Date: Sat, 22 Oct 2011 12:24:41 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: 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> <4EA30772.8090709@FreeBSD.org> <4EA3145A.6020703@passap.ru> <4EA315C6.4040305@FreeBSD.org> To: Doug Barton X-Mailer: Apple Mail (2.1084) Cc: freebsd-current@freebsd.org, Boris Samorodov 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 19:24:46 -0000 On Oct 22, 2011, at 12:13 PM, Doug Barton wrote: > On 10/22/2011 12:07, Boris Samorodov wrote: >> 22.10.2011 22:12, Doug Barton =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >>> On 10/22/2011 08:29, Garrett Cooper wrote: >>>> $(svn info | awk '/^Revision:/ {print $2}') >>>=20 >>> 2 subshells and a pipe for this, vs. only 1 subshell for just = running >>> svnversion. >>>=20 >>> Anyone else want to propose a more complex solution when a simple = and >>> more effective one already exists? :) >>=20 >> I'm not an exert here, so I'm not sure which one and why did you call >> "simple and more effective": >=20 > Please read the rest of this thread, where the fact that svnversion = does > more than what 'svn info' does, and that people find the more that it > does to be useful. >=20 > So "simpler" is "one command, not 2 or more," and "more effective" is > "provides more information, and people find that extra information > useful." :) I was just offering an alternative (improperly timed), and as dougb@ = pointed out, svnversion works better. Thanks, -Garrett=