Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Mar 2008 23:27:54 -0700
From:      Garrett Cooper <yanefbsd@gmail.com>
To:        Steven Kreuzer <skreuzer@exit2shell.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: OpenBSD sdiff Question
Message-ID:  <E53AA913-57F2-4FE4-8E11-4C7D415BE4A6@gmail.com>
In-Reply-To: <20080314231404.GB99765@scruffy.exit2shell.com>
References:  <20080314231404.GB99765@scruffy.exit2shell.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E53AA913-57F2-4FE4-8E11-4C7D415BE4A6>