I'm not sure what you mean by "the 2600basic.sh file." Is it a shell command script?
In DOS/Windows, you compile a batari Basic program by executing the 2600bas.bat file, and you have to give it the name of the bB program you want to compile. The only file whose name starts out with "2600basic" is 2600basic.exe, which is called from the batch script. I think you might be trying to run the 2600basic executable directly, but I'm not sure. Someone who's using batari Basic under Unix or Linux would be better able to help you than I am, but look to see if you have a batch script of some kind, like 2600bas.bat. If you do, try invoking it from the command line with the name of your program, like
2600bas.bat my_bB_program.bas
You will probably also need to set some environment variables for the directories that it should use. Can you post some information about how you've got bB installed on your system-- the directory structure, etc.? Also, can you post the contents of the 2600basic.sh file?
Michael
Iistalled bB, the windows/dos version in "/home/bastian/Desktop/Atari 2600/bB/" an i've also put the linux binaries into this folder
this is my shellscript:
#!/bin/sh
export bB=/home/bastian/Desktop/Atari2600/bB/
export PATH=$PATH:$bB
echo "Starting build of $1"
preprocess<$1 | 2600basic -i $bB>bB.asm
if [ "$?" -ne "0" ]
then
echo "Compilation failed."
exit
fi
if [ "$2" = "-O" ]
then
postprocess -i $bB|optimize>$1.asm
else
postprocess -i $bB>$1.asm
fi
dasm $1.asm -I$bB/includes -f3 -o$1.bin | sed '/Label mismatch/d' \
| sed '/shakescreen/d;/rand16/d;/debugscore/d;/pfscore/d;/noscore/d;/vblank_bB_code/d;/PFcolorandheight/d;/pfrowheight/d;/pfres/d;/PFmaskvalue/d;/overscan_time/d;/vblank_time/d;/no_blank_lines/d;/superchip/d;/ROM2k/d;/NO_ILLEGAL_OPCODES/d;/minikernel/d;/debugcycles/d;/mincycles/d;/legacy/d;/PFcolors/d;/playercolors/d;/player1colors/d;/backgroundchange/d;/readpaddle/d;/multisprite/d;/PFheights/d;/bankswitch/d;/Unresolved Symbols/d' \
| sed '2,/-->/!{ /-->/,/-->/d; }'\
| sed 's/--> 0./Possible duplicate label: /'
if [ "$?" -ne "0" ]
then
echo "Assembly failed."
exit
fi
echo "Build complete."
exit
when i try to compile files now this error:
~/Desktop/Atari2600/bB$ sh 2600basic.sh demo.bas
Starting build of demo.bas
Cannot open 2600basic_variable_redefs.h for writing
Compilation failed.
bastian@huebscher:~/Desktop/Atari2600/bB$