2017-12-29 17:12:55 +01:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
JAVAC=$1
|
|
|
|
CLASSPATH=$2
|
2023-12-18 05:38:10 +01:00
|
|
|
DIRNAME=`dirname "$3"`
|
2023-12-13 18:47:18 +01:00
|
|
|
REALDIR=`realpath "$DIRNAME"`
|
2017-12-29 17:12:55 +01:00
|
|
|
|
2023-12-18 05:38:10 +01:00
|
|
|
GENINCLUDE="$REALDIR/include"
|
2017-12-29 17:12:55 +01:00
|
|
|
|
2023-12-18 05:38:10 +01:00
|
|
|
mkdir -p "$GENINCLUDE"
|
2023-12-13 18:50:21 +01:00
|
|
|
"$JAVAC" -source 1.8 -target 1.8 -Xlint:-options \
|
2017-12-29 17:12:55 +01:00
|
|
|
-cp "$CLASSPATH" \
|
2023-12-18 05:38:10 +01:00
|
|
|
-h "$GENINCLUDE" \
|
|
|
|
"$4"
|
|
|
|
|