Re: [PATCH v2 2/4] Add prereq to detect OS X
On 04 Oct 2015, at 11:28, Junio C Hamanowrote: > larsxschnei...@gmail.com writes: > >> From: Lars Schneider >> >> Some Unix tools differ between Linux and Mac OS X. Add this prereq to >> detect OS X and handle it appropriately. > > If my comment on 4/4 turns out to be to the point, then we do not > need this, I presume? In general, we really should think three > times before adding prerequisite based on the platform. A prereq > based on a specific feature of the platform is often what we want > instead. Agreed. I will remove this commit in the next roll. Thanks, Lars -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH v2 2/4] Add prereq to detect OS X
From: Lars SchneiderSome Unix tools differ between Linux and Mac OS X. Add this prereq to detect OS X and handle it appropriately. Signed-off-by: Lars Schneider --- t/test-lib.sh | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/t/test-lib.sh b/t/test-lib.sh index 16c4d7b..726af40 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -913,7 +913,7 @@ yes () { done } -# Fix some commands on Windows +# Fix some commands on Windows and OS X case $(uname -s) in *MINGW*) # Windows has its own (incompatible) sort and find @@ -946,6 +946,9 @@ case $(uname -s) in test_set_prereq SED_STRIPS_CR test_set_prereq GREP_STRIPS_CR ;; +*Darwin*) + test_set_prereq DARWIN + ;; *) test_set_prereq POSIXPERM test_set_prereq BSLASHPSPEC -- 2.5.1 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v2 2/4] Add prereq to detect OS X
larsxschnei...@gmail.com writes: > From: Lars Schneider> > Some Unix tools differ between Linux and Mac OS X. Add this prereq to > detect OS X and handle it appropriately. If my comment on 4/4 turns out to be to the point, then we do not need this, I presume? In general, we really should think three times before adding prerequisite based on the platform. A prereq based on a specific feature of the platform is often what we want instead. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html