android: realdir doesn't accept nonexistant files on macOS

This commit is contained in:
Colin Edwards 2023-12-13 11:47:18 -06:00
parent a92a801f08
commit 4c90ad3704
1 changed files with 4 additions and 1 deletions

View File

@ -4,7 +4,10 @@ JAVAC=$1
CLASSPATH=$2 CLASSPATH=$2
JAVA_PKG_PATH=$3 JAVA_PKG_PATH=$3
ZIP=$4 ZIP=$4
JARFILE=`realpath "$5"` DIRNAME=`dirname "$5"`
REALDIR=`realpath "$DIRNAME"`
BASENAME=`basename "$5"`
JARFILE=$REALDIR/$BASENAME
shift 5 shift 5
D=`dirname "$JARFILE"` D=`dirname "$JARFILE"`