From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 15 06:56:51 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9B3F1065671 for ; Sat, 15 Mar 2008 06:56:51 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.183]) by mx1.freebsd.org (Postfix) with ESMTP id 6C54F8FC24 for ; Sat, 15 Mar 2008 06:56:51 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so4920440waf.3 for ; Fri, 14 Mar 2008 23:56:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=fuwRZfljiXaPrCaaDaazdCmug8h3KFunMhwhUeROpho=; b=UZJ+7CdvFyW6/4Wz3oNPvcfagueT3s/ts0oHlq+zbNrBj6tOA6WNAbjjUr2iNWFxtrv855o/8jRmWrEOkYwUB4+LG5seiRZxBgqb5iAt2etTOwZZacfF/0fidtXxrRXsn6CE/EnNpA3GQdPpV97c8GXSQbHWDcLvMSZ43HnbrT8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=Fv7X2C0/YEJOGvBByYtAlweGrgycF8py66wRtLUtiREHxqN+RMLfoY7/Za/LowZzs4Ayku4Lg9cCWiLGxUWanBVnaiZLPbGCdbYivFN+1+AN150r91UuSCmZWg6gbBvNCc9D9XUHXjkf+fO0nvbULCmaXsIvEsMTtfS8FqPws2Y= Received: by 10.114.151.13 with SMTP id y13mr13256956wad.145.1205562480252; Fri, 14 Mar 2008 23:28:00 -0700 (PDT) Received: from ?192.168.10.43? ( [99.151.254.141]) by mx.google.com with ESMTPS id m40sm10082717wag.0.2008.03.14.23.27.58 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 14 Mar 2008 23:27:59 -0700 (PDT) Message-Id: From: Garrett Cooper To: Steven Kreuzer In-Reply-To: <20080314231404.GB99765@scruffy.exit2shell.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Fri, 14 Mar 2008 23:27:54 -0700 References: <20080314231404.GB99765@scruffy.exit2shell.com> X-Mailer: Apple Mail (2.919.2) Cc: freebsd-hackers@freebsd.org Subject: Re: OpenBSD sdiff Question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Mar 2008 06:56:51 -0000 On Mar 14, 2008, at 4:14 PM, Steven Kreuzer wrote: > Greetings- > > I am currently working on replacing the GNU version of sdiff with a > version > of sdiff that was released into the public domain and is used in > OpenBSD > > Xin LI has been guiding me along with the project and he suggested I > post > here to see what you guys think. > > I achieve 100% compatability with the GNU version, I need to add > -v/--version and the issue I ran into is that since this program would > become part of the base os, what exactly should be displayed. > > My idea is to simply print __FreeBSD_version but I am open to other > suggestions. > > For reference: > $ sdiff -v > sdiff (GNU diffutils) 2.8.7 > Written by Thomas Lord. > > Copyright (C) 2004 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There > is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR > PURPOSE. > > And my port from OpenBSD: > $ ./sdiff -v > sdiff (BSD diffutils) 602111 > Written by Raymond Lai. > > This work has been released into the public domain. > > -- > Steven Kreuzer > http://www.exit2shell.com/~skreuzer Keeping the generic BSD diffutils version string might be wiser as autoconf and friends will be better able to pick up on the version and features available, etc, unless you plan on doing something non- standard with your version (i.e. remove features, add others, etc). My 2 cents. -Garrett