Fix sed usage on BSD-like systems (e.g. MacOS)

This commit is contained in:
Moritz Bunkus 2010-03-25 11:11:13 +01:00
parent a2d94066ea
commit eaf9ee4f4c

View File

@ -3,7 +3,7 @@
obj="$1" obj="$1"
exitcode="$2" exitcode="$2"
dep="`echo "$obj" | sed -e 's:\.\(o\|gch\)$:.d:'`" dep="`echo "$obj" | sed -E -e 's:\.(o|gch)$:.d:'`"
test -f "$dep" || exit $exitcode test -f "$dep" || exit $exitcode
test -f .deps && rm -f .deps test -f .deps && rm -f .deps