2022-03-05 20:57:02 +01:00
|
|
|
#!/bin/bash
|
2022-04-29 20:03:58 +02:00
|
|
|
if [ "$ISBPL_PATH" = "" ] ; then
|
|
|
|
echo 'ISBPL_PATH=/usr/lib/isbpl' >> /etc/environment
|
|
|
|
fi
|
2022-05-16 00:46:05 +02:00
|
|
|
IFS=: read -r BIN OTHERBIN <<< "$PATH"
|
2022-05-13 19:18:49 +02:00
|
|
|
mkdir /usr/lib/isbpl >& /dev/null
|
2022-05-16 00:50:38 +02:00
|
|
|
touch /usr/lib/isbpl/test && export BIN=/usr/bin && rm /usr/lib/isbpl/test
|
|
|
|
echo "Installing to $BIN."
|
2022-05-13 19:18:49 +02:00
|
|
|
cp ./*.isbpl /usr/lib/isbpl >& /dev/null
|
2022-04-29 20:03:58 +02:00
|
|
|
cd bootstrap
|
2022-05-13 19:18:49 +02:00
|
|
|
cp ../ISBPL.java .
|
|
|
|
echo ">>> There will be warnings about the Unsafe. Sadly, the code producing them is required for JIO. <<<"
|
2022-04-29 20:03:58 +02:00
|
|
|
javac ISBPL.java
|
2022-05-13 19:18:49 +02:00
|
|
|
rm ISBPL.java ISBPL.jar
|
|
|
|
zip -r ISBPL.jar * META-INF
|
2022-04-29 20:03:58 +02:00
|
|
|
rm *.class
|
|
|
|
cd ..
|
2022-05-16 00:50:38 +02:00
|
|
|
echo "#!java -jar" > ISBPL.jar
|
2022-04-29 20:03:58 +02:00
|
|
|
cat bootstrap/ISBPL.jar >> ISBPL.jar
|
|
|
|
chmod a+rx ISBPL.jar
|
2022-05-16 00:46:05 +02:00
|
|
|
cp ISBPL.jar "${BIN}/isbpl"
|
|
|
|
chmod a+rx "${BIN}/isbpl"
|