improve string blocks, improve patch detection
This commit is contained in:
parent
c819d48081
commit
57fbd0c898
2 changed files with 10 additions and 5 deletions
|
@ -257,8 +257,12 @@ public class ISBPL {
|
|||
idx++;
|
||||
AtomicInteger i = new AtomicInteger(idx);
|
||||
String s = "";
|
||||
for(String w : readBlock(i, words, file))
|
||||
s += w + " ";
|
||||
for(String w : readBlock(i, words, file)) {
|
||||
s += w;
|
||||
if(w.length() > 0 && w.charAt(0) == '"')
|
||||
s += '"';
|
||||
s += " ";
|
||||
}
|
||||
s = s.substring(0, s.length() - 1);
|
||||
stack.push(toISBPLString(s));
|
||||
return i.get();
|
||||
|
|
7
setup.sh
7
setup.sh
|
@ -2,6 +2,7 @@
|
|||
if [ "$ISBPL_PATH" = "" ] ; then
|
||||
echo 'ISBPL_PATH=/usr/lib/isbpl' >> /etc/environment
|
||||
fi
|
||||
IFS=: read -r BIN OTHERBIN <<< "$PATH"
|
||||
mkdir /usr/lib/isbpl >& /dev/null
|
||||
cp ./*.isbpl /usr/lib/isbpl >& /dev/null
|
||||
cd bootstrap
|
||||
|
@ -12,8 +13,8 @@ rm ISBPL.java ISBPL.jar
|
|||
zip -r ISBPL.jar * META-INF
|
||||
rm *.class
|
||||
cd ..
|
||||
echo "#!/usr/bin/java -jar" > ISBPL.jar
|
||||
echo "#!${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
|
||||
cp ISBPL.jar "${BIN}/isbpl"
|
||||
chmod a+rx "${BIN}/isbpl"
|
||||
|
|
Loading…
Add table
Reference in a new issue