1
1
Fork 0
mirror of https://github.com/azur1s/bobbylisp.git synced 2024-10-16 02:37:40 -05:00
bobbylisp/test.sh

23 lines
699 B
Bash
Executable file

in=$1 # Get first's file name
noext=${in%.*} # Remove extension
name=${noext##*/} # Remove path
echo $2
# if $2 equal to "noecho"
if [ $2 = "noecho" ];
then
make debug; echo ""; blspc compile $noext.blsp; echo ""
cat $noext.blsp; echo -e "\n"; cat $name.bsm; echo ""
blspc run $name.bsm
else
make debug
blspc compile $noext.blsp
echo -e "------------------------------------------- SOURCE"
cat $noext.blsp
echo -e "\n----------------------------------------- COMPILED"
cat $name.bsm
echo -e "------------------------------------------- OUTPUT"
blspc run $name.bsm
echo -e "--------------------------------------------------"
fi