From 11b872f2cc7ec73c10c063c94d62e936d46517b2 Mon Sep 17 00:00:00 2001 From: glewis Date: Mon, 15 Jul 2002 07:17:24 +0000 Subject: Remove unintentional dependency on readlink by replacing the call to it with a piece of sh+awk based on a recent post to freebsd-arch by Cyrille Lefevre . --- java/jdk15/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/jdk15/Makefile') diff --git a/java/jdk15/Makefile b/java/jdk15/Makefile index a6c683ac8c20..1c74eb0f8619 100644 --- a/java/jdk15/Makefile +++ b/java/jdk15/Makefile @@ -123,7 +123,7 @@ pre-patch: pre-build: @if [ "$${WRKDIRPREFIX}" -a \ -L "/compat/linux/$${WRKDIRPREFIX}" -a \ - x`readlink "/compat/linux/$${WRKDIRPREFIX}"` = x"$${WRKDIRPREFIX}" ]; \ + x`ls -ld "/compat/linux/$${WRKDIRPREFIX}" 2>/dev/null | awk '/->/{print $$NF;exit 0}END{exit 1}'` = x"$${WRKDIRPREFIX}" ]; \ then \ echo "Please set WRKDIRPREFIX to something which doesn't"; \ echo "have a matching symbolic link in /compat/linux."; \ -- cgit