diff options
author | glewis <glewis@FreeBSD.org> | 2002-07-15 07:17:24 +0000 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2002-07-15 07:17:24 +0000 |
commit | 11b872f2cc7ec73c10c063c94d62e936d46517b2 (patch) | |
tree | 1f350c5853e4a10eacfb5ad8e39198bb16da1266 /java/jdk13 | |
parent | e8bbdb831080183bcb9d0a8e9494db0531e1058f (diff) | |
download | FreeBSD-ports-11b872f2cc7ec73c10c063c94d62e936d46517b2.zip FreeBSD-ports-11b872f2cc7ec73c10c063c94d62e936d46517b2.tar.gz |
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 <cyrille.lefevre@laposte.net>.
Diffstat (limited to 'java/jdk13')
-rw-r--r-- | java/jdk13/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/jdk13/Makefile b/java/jdk13/Makefile index a6c683a..1c74eb0 100644 --- a/java/jdk13/Makefile +++ b/java/jdk13/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."; \ |