better setup.sh, and /bin/isbpl creation
This commit is contained in:
parent
eb5bbd42b8
commit
fae848043f
2 changed files with 15 additions and 1 deletions
|
@ -1334,6 +1334,8 @@ public class ISBPL {
|
|||
}
|
||||
|
||||
public void interpret(File file, String code, Stack<ISBPLObject> stack) {
|
||||
if(code.startsWith("#!"))
|
||||
code = code.substring(code.indexOf("\n") + 1);
|
||||
fileStack.get().push(file);
|
||||
code = cleanCode(code);
|
||||
String[] words = splitWords(code);
|
||||
|
|
14
setup.sh
14
setup.sh
|
@ -1,4 +1,16 @@
|
|||
#!/bin/bash
|
||||
echo 'ISBPL_PATH=/usr/lib/isbpl' >> /etc/environment
|
||||
if [ "$ISBPL_PATH" = "" ] ; then
|
||||
echo 'ISBPL_PATH=/usr/lib/isbpl' >> /etc/environment
|
||||
fi
|
||||
mkdir /usr/lib/isbpl
|
||||
cp ./*.isbpl /usr/lib/isbpl
|
||||
cd bootstrap
|
||||
javac ISBPL.java
|
||||
zip -r ISBPL.jar *.class 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
|
||||
|
|
Loading…
Add table
Reference in a new issue