From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from moutng.kundenserver.de ([212.227.126.171]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1SKpY5-0000uw-RY for ptxdist@pengutronix.de; Thu, 19 Apr 2012 13:29:21 +0200 Received: from [192.168.102.103] (azuregos.2og.er.corscience.de [192.168.102.103]) by corscience.de (Postfix) with ESMTP id 0FE4C51EB2 for ; Thu, 19 Apr 2012 13:29:09 +0200 (CEST) Message-ID: <4F8FF706.1040103@corscience.de> Date: Thu, 19 Apr 2012 13:29:10 +0200 From: =?ISO-8859-1?Q?Andreas_Bie=DFmann?= MIME-Version: 1.0 References: <4F832414.2090800@biessmann.de> <20120409185943.GB7410@regiomontanus.bwalle.de> <4F834B30.7020002@biessmann.de> <20120410090436.GB598@regiomontanus.bwalle.de> <20120410183557.GA7335@regiomontanus.bwalle.de> <1B5EB76D-CF79-4E04-A49E-E4C9A49AF0BE@etit.tu-chemnitz.de> <20120417112406.GI8237@pengutronix.de> <20120417114504.GA11343@regiomontanus.bwalle.de> <20120418082935.GJ28513@pengutronix.de> <4295DCC4-649F-4EE5-928A-41DDF15A5490@etit.tu-chemnitz.de> <20120418141642.GE17656@pengutronix.de> <0CD03835-B077-48D9-98B3-D6BD380253BA@etit.tu-chemnitz.de> <742DF9D3-D7F9-4E91-B5DB-D5B33C424B8F@etit.tu-chemnitz.de> In-Reply-To: <742DF9D3-D7F9-4E91-B5DB-D5B33C424B8F@etit.tu-chemnitz.de> Subject: Re: [ptxdist] Using PTXdist on Mac OS Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hi all, On 19.04.2012 12:41, Daniel Kriesten wrote: > Hi Michael, > at leas on a Mac (OS X 10.6.8) the BSD find supports -print0 yes, OS X delivered BSD find supports -print0, but it does _not_ support omitting the path! ---8<--- andreas@andreas-mbp % /usr/bin/find -type l -print0 /usr/bin/find: illegal option -- t /usr/bin/find: illegal option -- y /usr/bin/find: illegal option -- p /usr/bin/find: illegal option -- e find: l: No such file or directory andreas@andreas-mbp % /usr/bin/find . -type l -print0 ./awk./chmod./chown./cp./install./md5sum./mkdir./mknod./mv./python./readlin= k./rm./rmdir./sed./stat./tar./xargs% andreas@andreas-mbp % --->8--- Therefore the provided patch from Michael will _not_ work with that find. Beside that that was not the question. I think a portable solution would be: ---8<--- --- a/Makefile.in +++ b/Makefile.in @@ -63,7 +63,7 @@ environment: clean: @rm -f .done - @find "$(abs_srcdir)/bin" -type l -print0 | xargs -r -0 rm + @cd "$(abs_srcdir)/bin" && find . -type l -print | xargs rm -f @$(MAKE) -C "$(abs_srcdir)/scripts/kconfig" clean --->8--- OR leaving the xargs -r param ---8<--- --- a/Makefile.in +++ b/Makefile.in @@ -63,7 +63,7 @@ environment: clean: @rm -f .done - @find "$(abs_srcdir)/bin" -type l -print0 | xargs -r -0 rm + @find "$(abs_srcdir)/bin" -type l -print0 | xargs -0 rm @$(MAKE) -C "$(abs_srcdir)/scripts/kconfig" clean --->8--- best regards Andreas Bie=DFmann -- = ptxdist mailing list ptxdist@pengutronix.de