corrction of build scripts

This commit is contained in:
Jörg Deckert 2014-05-05 13:43:38 +02:00
parent 578b5c0080
commit 888bb06d9e
4 changed files with 19 additions and 36 deletions

View File

@ -4,8 +4,5 @@ bin="../Bin/spinix"
sd="${bin}/sdcard" sd="${bin}/sdcard"
flash="${bin}/flash" flash="${bin}/flash"
cd src bstc -b -O cgru src/$1.spin
bstc -b -O cgru $1.spin mv $1.binary ${sd}/bin/$1
cp $1.binary ${sd}/bin/$1
rm $1.binary
cd ..

View File

@ -5,8 +5,5 @@ sd="${bin}/sdcard"
flash="${bin}/flash" flash="${bin}/flash"
# Build the the boot program # Build the the boot program
cd src bstc -b -O cgru src/boot.spin
bstc -b -O cgru boot.spin mv boot.binary ${flash}/
cp boot.binary ${flash}/
rm boot.binary
cd ..

View File

@ -6,7 +6,7 @@ flash="${bin}/flash"
# Clean directories and remake them # Clean directories and remake them
rm -rf ${bin} rm -rf ${bin}
mkdir ${bin} mkdir -p ${bin}
mkdir ${sd} mkdir ${sd}
mkdir ${flash} mkdir ${flash}
mkdir ${sd}/bin mkdir ${sd}/bin
@ -42,22 +42,16 @@ cp devel/* ${sd}/devel
cp manpages/* ${sd}/manpages cp manpages/* ${sd}/manpages
# Build lerner # Build lerner
cd lerner cp src/sysdefs.spin lerner/
cp ../src/sysdefs.spin . cp src/exit.spin lerner/
cp ../src/exit.spin . bstc -b -O cgru lerner/lerner.spin
bstc -b -O cgru lerner.spin mv lerner.binary ${sd}/demos/lerner
cp lerner.binary ${sd}/demos/lerner
rm *.binary
cd ..
# Build vga512 # Build vga512
cd vga512 cp src/sysdefs.spin vga512/
cp ../src/sysdefs.spin . cp src/exit.spin vga512/
cp ../src/exit.spin . bstc -b vga512/VGA_512x384_Bitmap_Demo.spin
bstc -b VGA_512x384_Bitmap_Demo.spin mv VGA_512x384_Bitmap_Demo.binary ${sd}/demos/vga512
cp VGA_512x384_Bitmap_Demo.binary ${sd}/demos/vga512
rm *.binary
cd ..
# Move vgatdemo from bin to demos # Move vgatdemo from bin to demos
mv ${sd}/bin/vgatdemo ${sd}/demos mv ${sd}/bin/vgatdemo ${sd}/demos
@ -74,13 +68,11 @@ mv filetest/filetest.binary ${sd}/demos/filetest
mv chess/chess.binary ${sd}/demos/chess mv chess/chess.binary ${sd}/demos/chess
# Build pfth and copy the Forth files # Build pfth and copy the Forth files
cd pfth bstc -b pfth/ospfth.spin
bstc -b ospfth.spin
mv ospfth.binary ${sd}/bin/pfth mv ospfth.binary ${sd}/bin/pfth
cp *.fth ${sd}/forth cp pfth/*.fth ${sd}/forth
cp *.txt ${sd}/forth cp pfth/*.txt ${sd}/forth
mv ${sd}/forth/_startup.fth ${sd} mv ${sd}/forth/_startup.fth ${sd}
cd ..
# Copy the script files # Copy the script files
cp scripts/* ${sd}/scripts cp scripts/* ${sd}/scripts

View File

@ -59,10 +59,7 @@ cp src/spc ${sd}/bin
cp src/*.txt ${sd}/bin cp src/*.txt ${sd}/bin
# Build files for spasm # Build files for spasm
cd src grep PUB src/clibsd.spin >${sd}/devel/clibsd.spn
grep PUB clibsd.spin >${sd}/devel/clibsd.spn
cp ${sd}/devel/clibsd.spn ${sd}/devel/clibsd.spa cp ${sd}/devel/clibsd.spn ${sd}/devel/clibsd.spa
bstc -b clibsd.spin bstc -b src/clibsd.spin
cp clibsd.binary ${sd}/devel/clibsd.bin mv clibsd.binary ${sd}/devel/clibsd.bin
rm clibsd.binary
cd ..