svn commit: r390865 - in head/Mk: . Scripts

Baptiste Daroussin bapt at FreeBSD.org
Sun Jun 28 21:28:04 UTC 2015


On Sun, Jun 28, 2015 at 11:24:25PM +0200, olli hauer wrote:
> On 2015-06-28 20:50, Baptiste Daroussin wrote:
> > Author: bapt
> > Date: Sun Jun 28 18:50:37 2015
> > New Revision: 390865
> > URL: https://svnweb.freebsd.org/changeset/ports/390865
> > 
> > Added:
> >   head/Mk/Scripts/do-depends.sh   (contents, props changed)
> > Modified:
> >   head/Mk/bsd.port.mk
> > 
> > Added: head/Mk/Scripts/do-depends.sh
> > ==============================================================================
> > --- /dev/null	00:00:00 1970	(empty, because file is newly added)
> > +++ head/Mk/Scripts/do-depends.sh	Sun Jun 28 18:50:37 2015	(r390865)
> 
> ...
> 
> > +find_file_path()
> > +{
> > +	if which -s $1 ; then
> > +		echo "===>   ${dp_PKGNAME} depends on executable: $1 - found"
> > +		return 0
> > +	fi
> 
> Shouldn't this be 's|which|${WHICH}|' or 's|which|/usr/bin/which|' as in the old version?
> 
> E.g which in csh don't have parameter [a|s]

well actually the script is always and only used via /bin/sh so we can use the
sh(1) builtin version of which :)

Best regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20150628/8060a97d/attachment.bin>


More information about the svn-ports-all mailing list