This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#6499 - fix rockboxdev.sh make/gmake detection in Mac OS X/Darwin
Attached to Project:
Rockbox
Opened by Lenny Koepsell (lenny) - Thursday, 04 January 2007, 08:32 GMT+2
Last edited by Barry Wardell (barrywardell) - Monday, 13 August 2007, 02:10 GMT+2
Opened by Lenny Koepsell (lenny) - Thursday, 04 January 2007, 08:32 GMT+2
Last edited by Barry Wardell (barrywardell) - Monday, 13 August 2007, 02:10 GMT+2
|
DetailsA commit on 22 Nov 09:07 added detection for gmake so it can be used if available.
I assume on standard *nix distros the command "which" should return nothing if the program is not found. However, in mac os x (darwin) "which" returns with an error message when a program is not found. Example: $ which gmake no gmake in /bin /sbin /usr/bin /usr/sbin This creates problems for this if statement: if [ -n "`which gmake`" ]; then make="gmake" else I have added a subsequent if statement which seems to fix the problem. Let me know how I did! (first patch) |
This task depends upon
Closed by Barry Wardell (barrywardell)
Monday, 13 August 2007, 02:10 GMT+2
Reason for closing: Accepted
Additional comments about closing: Thanks.
Monday, 13 August 2007, 02:10 GMT+2
Reason for closing: Accepted
Additional comments about closing: Thanks.
I suspect this behavior (the presence of an error message from "which") is not Darwin specific. Perhaps a BSD thing?
Works great for me!