mpd/android/run-javac.sh

16 lines
246 B
Bash
Raw Normal View History

#!/bin/sh -e
JAVAC=$1
CLASSPATH=$2
DIRNAME=`dirname "$3"`
REALDIR=`realpath "$DIRNAME"`
GENINCLUDE="$REALDIR/include"
mkdir -p "$GENINCLUDE"
"$JAVAC" -source 1.8 -target 1.8 -Xlint:-options \
-cp "$CLASSPATH" \
-h "$GENINCLUDE" \
"$4"