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

feat: test.sh in other directory

This commit is contained in:
Natapat Samutpong 2022-01-28 06:43:32 +07:00
parent 83e0121dee
commit 0263e8c273

View file

@ -1,12 +1,13 @@
in=$1 # Get first's file name
name=${in%.*} # Remove extension
noext=${in%.*} # Remove extension
name=${noext##*/} # Remove path
make debug
blspc compile $name.blsp
blspc compile $noext.blsp
echo -e "------------------------------------------- SOURCE"
cat ./$name.blsp
cat $noext.blsp
echo -e "\n----------------------------------------- COMPILED"
cat ./$name.bsm
cat $noext.bsm
echo -e "------------------------------------------- OUTPUT"
blspc run $name.bsm
echo -e "--------------------------------------------------"