[CFT] [sys/conf/newvers.sh] Cleanup and additions.

Anonymous swell.k at gmail.com
Wed Aug 11 01:11:05 UTC 2010

(a copy for current@)

jhell <jhell at dataix.net> writes:

>  * Adjust the paths that are checked for binaries to be of only
> /usr/local/bin and /usr/bin. "/bin" is highly unlikely to hold svn(1),
> git(1) or hg(1).

Please, look at conf/146828. That script shouldn't blindly assume where
user installs his packages[1].

[1] using non-default LOCALBASE is a convenient way to identify
    non-conforming ports

> +                                gitsvnid="`$git log |fgrep 'git-svn-id:' |head -1 |\
> +                                sed -n 's/^.*@\([0-9][0-9]*\).*$/\1/p'`"

The above line can be sed-only. A few parts can be simplified, too.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: a.diff
Type: text/x-patch
Size: 2348 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20100811/3588e4c8/a.bin

More information about the freebsd-current mailing list