Initial commit after migrating repo and assuring the product builds and tests pass
This commit is contained in:
19
shellscripts/pbi
Normal file
19
shellscripts/pbi
Normal file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Starts the PiBasicInterpreter
|
||||
# Arguments:
|
||||
#
|
||||
|
||||
if hash java 2>/dev/null; then
|
||||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
java -jar $DIR/pbi.jar $1 $2 $3 $4
|
||||
else
|
||||
echo "java command is not available. Need to install java first"
|
||||
fi
|
||||
|
||||
|
||||
# In order to get it running, on linux you have to:
|
||||
# chmod uga+x pbi
|
||||
# add this file's directory to the system path:
|
||||
# export PATH=/yourunzipdir:$PATH
|
||||
|
6
shellscripts/pbi.bat
Normal file
6
shellscripts/pbi.bat
Normal file
@ -0,0 +1,6 @@
|
||||
where java.exe >nul 2>nul
|
||||
if %errorlevel%==1 (
|
||||
@echo java.exe not found in path. stopping at this point.
|
||||
) else (
|
||||
java -jar %~dp0\pbi.jar %1 %2 %3 %4
|
||||
)
|
Reference in New Issue
Block a user