isbpl/setup.sh
2022-05-13 19:18:49 +02:00

19 lines
551 B
Bash

#!/bin/bash
if [ "$ISBPL_PATH" = "" ] ; then
echo 'ISBPL_PATH=/usr/lib/isbpl' >> /etc/environment
fi
mkdir /usr/lib/isbpl >& /dev/null
cp ./*.isbpl /usr/lib/isbpl >& /dev/null
cd bootstrap
cp ../ISBPL.java .
echo ">>> There will be warnings about the Unsafe. Sadly, the code producing them is required for JIO. <<<"
javac ISBPL.java
rm ISBPL.java ISBPL.jar
zip -r ISBPL.jar * META-INF
rm *.class
cd ..
echo "#!/usr/bin/java -jar" > ISBPL.jar
cat bootstrap/ISBPL.jar >> ISBPL.jar
chmod a+rx ISBPL.jar
cp ISBPL.jar /bin/isbpl
chmod a+rx /bin/isbpl