mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Andreas Bießmann" <biessmann@corscience.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] Using PTXdist on Mac OS
Date: Thu, 19 Apr 2012 13:29:10 +0200	[thread overview]
Message-ID: <4F8FF706.1040103@corscience.de> (raw)
In-Reply-To: <742DF9D3-D7F9-4E91-B5DB-D5B33C424B8F@etit.tu-chemnitz.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./readlink./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ßmann

-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2012-04-19 11:29 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-09 17:11 Bernhard Walle
2012-04-09 17:48 ` Juergen Beisert
2012-04-10  9:37   ` Bernhard Walle
2012-04-09 18:01 ` Andreas Bießmann
2012-04-09 18:59   ` Bernhard Walle
2012-04-09 19:47     ` Juergen Beisert
2012-04-09 20:04     ` Andreas Bießmann
2012-04-09 20:48     ` Andreas Bießmann
2012-04-10  9:04       ` Bernhard Walle
2012-04-10 18:35         ` Bernhard Walle
2012-04-17 11:08           ` Daniel Kriesten
2012-04-17 11:24             ` Michael Olbrich
2012-04-17 11:45               ` Bernhard Walle
2012-04-17 11:59                 ` Daniel Kriesten
2012-04-17 12:03                   ` Bernhard Walle
2012-04-17 12:32                     ` Daniel Kriesten
2012-04-18  8:29                 ` Michael Olbrich
2012-04-18 11:25                   ` Daniel Kriesten
2012-04-18 14:16                     ` Michael Olbrich
2012-04-18 14:28                       ` Daniel Kriesten
2012-04-19 10:41                         ` Daniel Kriesten
2012-04-19 11:29                           ` Andreas Bießmann [this message]
2012-04-19 12:04                             ` Daniel Kriesten
2012-04-19 12:25                               ` Andreas Bießmann
2012-04-19 13:12                                 ` Daniel Kriesten
2012-04-19 13:27                                   ` Michael Olbrich
2012-04-19 14:03                                   ` Andreas Bießmann
2012-04-19 20:13                                   ` Bernhard Walle
2012-12-08 15:31                                 ` Daniel Kriesten
2012-12-08 15:43                                   ` [ptxdist] Using PTXdist on Mac OS 10.7 Daniel Kriesten
2012-12-10  8:48                                     ` Michael Olbrich
2012-12-10  8:46                                   ` [ptxdist] Using PTXdist on Mac OS Michael Olbrich
2012-12-11 15:00                                     ` Daniel Kriesten
2012-12-12 11:00                                       ` Michael Olbrich
2012-04-17 11:48             ` Bernhard Walle
2012-04-17 12:04               ` Daniel Kriesten
2012-04-17 12:18                 ` Bernhard Walle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F8FF706.1040103@corscience.de \
    --to=biessmann@corscience.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox