From 4c90ad3704cd6ea8ce70b29e0cf89fb609c3451e Mon Sep 17 00:00:00 2001 From: Colin Edwards Date: Wed, 13 Dec 2023 11:47:18 -0600 Subject: [PATCH] android: realdir doesn't accept nonexistant files on macOS --- android/run-javac.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/android/run-javac.sh b/android/run-javac.sh index d7b23c12a..7b31a43b0 100755 --- a/android/run-javac.sh +++ b/android/run-javac.sh @@ -4,7 +4,10 @@ JAVAC=$1 CLASSPATH=$2 JAVA_PKG_PATH=$3 ZIP=$4 -JARFILE=`realpath "$5"` +DIRNAME=`dirname "$5"` +REALDIR=`realpath "$DIRNAME"` +BASENAME=`basename "$5"` +JARFILE=$REALDIR/$BASENAME shift 5 D=`dirname "$JARFILE"`