sys/conf/newvers.sh vs. subversion-1.7

Craig Rodrigues rodrigc at crodrigues.org
Sat Oct 22 00:51:22 UTC 2011


Hi,

Can you come up with a patch which invoke "svn info ." (if the svn
binary exists)?
This is slightly faster than svnversion.

If "svn info ." doesn't error out, you can assume that the directory
is under SVN control.

--
Craig Rodrigues
rodrigc at crodrigues.org

On Fri, Oct 21, 2011 at 2:12 PM, David Wolfskill <david at catwhisker.org> wrote:
> On Fri, Oct 21, 2011 at 04:36:05PM -0400, John Baldwin wrote:
>> ....
>> I'm not sure what the best fix is.  One could possibly always run svnversion
>> if it exists?
>
> Sure -- and use the result as long as the exit status is 0.  (It's
> certainly possible that svnversion exists, but the sources in question
> aren't in a subversion working copy, after all.)
>
> I could cobble up a patch to do that, if y'all like....
>
> Alternatively, see the more extended comments I made to Jilles' comments
> (to the PR) of a similar nature;
> <http://www.freebsd.org/cgi/query-pr.cgi?pr=161835>.  Summary: I believe
> that newvers.sh ought to be intrinsically SCM-agnostic.
>
> Peace,
> david
> --
> David H. Wolfskill                              david at catwhisker.org
> Depriving a girl or boy of an opportunity for education is evil.
>
> See http://www.catwhisker.org/~david/publickey.gpg for my public key.
>



-- 
Craig Rodrigues
rodrigc at crodrigues.org


More information about the freebsd-current mailing list