change build scripts for binaries in external dir

This commit is contained in:
Jörg Deckert 2014-03-25 14:38:35 +01:00
parent 0773b02886
commit 29c958a529
5 changed files with 64 additions and 51 deletions

View File

@ -1,5 +1,10 @@
# Path defititions
bin="/home/ftp/hive/spinix"
sd="${bin}/sdcard"
flash="${bin}/flash"
cd src cd src
bstc -b -O cgru $1.spin bstc -b -O cgru $1.spin
cp $1.binary ../root/bin/$1 cp $1.binary ${sd}/bin/$1
rm $1.binary rm $1.binary
cd .. cd ..

View File

@ -1,6 +1,11 @@
# Path defititions
bin="/home/ftp/hive/spinix"
sd="${bin}/sdcard"
flash="${bin}/flash"
# Build the the boot program # Build the the boot program
cd src cd src
bstc -b -O cgru boot.spin bstc -b -O cgru boot.spin
cp boot.binary .. cp boot.binary ${flash}/
rm boot.binary rm boot.binary
cd .. cd ..

View File

@ -1,47 +1,51 @@
# Path defititions
bin="/home/ftp/hive/spinix"
sd="${bin}/sdcard"
flash="${bin}/flash"
# Clean directories and remake them # Clean directories and remake them
rm -rf root rm -rf ${bin}
mkdir root mkdir ${bin}
mkdir root/bin mkdir ${sd}
mkdir root/tmp mkdir ${flash}
mkdir root/manpages mkdir ${sd}/bin
mkdir root/devel mkdir ${sd}/tmp
mkdir root/demos mkdir ${sd}/manpages
mkdir root/forth mkdir ${sd}/devel
mkdir root/scripts mkdir ${sd}/demos
mkdir ${sd}/forth
mkdir ${sd}/scripts
# Build the boot program # Build the boot program
./build_boot ./build_boot
# Copy license and startup script to root # Copy license and startup script to root
cp license.txt root cp license.txt ${sd}
cp src/_shellrc root/bin cp src/_shellrc ${sd}/bin
# Generate _sysparm and copy to root # Generate _sysparm and copy to root
cd src date +%s >${sd}/_sysparm
date +%s >_sysparm echo -6 3 0 >>${sd}/_sysparm
echo -6 3 0 >>_sysparm echo 0 0 0 >>${sd}/_sysparm
echo 0 0 0 >>_sysparm echo "GPWD /" >>${sd}/_sysparm
echo "GPWD /" >>_sysparm echo "LSCRIPT_FILE /bin/_shellrc" >>${sd}/_sysparm
echo "LSCRIPT_FILE /bin/_shellrc" >>_sysparm echo "P# 0" >>${sd}/_sysparm
echo "P# 0" >>_sysparm
cd ..
cp src/_sysparm root
# Build the bin apps # Build the bin apps
./build_src ./build_src
# Copy the devel files # Copy the devel files
cp devel/* root/devel cp devel/* ${sd}/devel
# Copy the man pages # Copy the man pages
cp manpages/* root/manpages cp manpages/* ${sd}/manpages
# Build lerner # Build lerner
cd lerner cd lerner
cp ../src/sysdefs.spin . cp ../src/sysdefs.spin .
cp ../src/exit.spin . cp ../src/exit.spin .
bstc -b -O cgru lerner.spin bstc -b -O cgru lerner.spin
cp lerner.binary ../root/demos/lerner cp lerner.binary ${sd}/demos/lerner
rm *.binary rm *.binary
cd .. cd ..
@ -50,32 +54,32 @@ cd vga512
cp ../src/sysdefs.spin . cp ../src/sysdefs.spin .
cp ../src/exit.spin . cp ../src/exit.spin .
bstc -b VGA_512x384_Bitmap_Demo.spin bstc -b VGA_512x384_Bitmap_Demo.spin
cp VGA_512x384_Bitmap_Demo.binary ../root/demos/vga512 cp VGA_512x384_Bitmap_Demo.binary ${sd}/demos/vga512
rm *.binary rm *.binary
cd .. cd ..
# Move vgatdemo from bin to demos # Move vgatdemo from bin to demos
mv root/bin/vgatdemo root/demos mv ${sd}/bin/vgatdemo ${sd}/demos
# Copy the C demos # Move the C demos
cp cdemos/dry/dry.binary root/demos/dry mv cdemos/dry/dry.binary ${sd}/demos/dry
cp cdemos/fibo/fibo.binary root/demos/fibo mv cdemos/fibo/fibo.binary ${sd}/demos/fibo
cp cdemos/hello/hello.binary root/demos/hello mv cdemos/hello/hello.binary ${sd}/demos/hello
# Copy C filetest program # Move C filetest program
cp filetest/filetest.binary root/demos/filetest mv filetest/filetest.binary ${sd}/demos/filetest
# Copy C chess program # Move C chess program
cp chess/chess.binary root/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 cd pfth
bstc -b ospfth.spin bstc -b ospfth.spin
cp ospfth.binary ../root/bin/pfth mv ospfth.binary ${sd}/bin/pfth
cp *.fth ../root/forth cp *.fth ${sd}/forth
cp *.txt ../root/forth cp *.txt ${sd}/forth
mv ../root/forth/_startup.fth ../root mv ${sd}/forth/_startup.fth ${sd}
cd .. cd ..
# Copy the script files # Copy the script files
cp scripts/* root/scripts cp scripts/* ${sd}/scripts

View File

@ -1,3 +1,8 @@
# Path defititions
bin="/home/ftp/hive/spinix"
sd="${bin}/sdcard"
flash="${bin}/flash"
# Build the bin apps # Build the bin apps
./build_bin alias ./build_bin alias
./build_bin cat ./build_bin cat
@ -47,16 +52,16 @@
./build_bin wc ./build_bin wc
# Copy the shell scripts # Copy the shell scripts
cp src/spc root/bin cp src/spc ${sd}/bin
# Copy text files # Copy text files
cp src/*.txt root/bin cp src/*.txt ${sd}/bin
# Build files for spasm # Build files for spasm
cd src cd src
grep PUB clibsd.spin >../root/devel/clibsd.spn grep PUB clibsd.spin >${sd}/devel/clibsd.spn
cp ../root/devel/clibsd.spn ../root/devel/clibsd.spa cp ${sd}/devel/clibsd.spn ${sd}/devel/clibsd.spa
bstc -b clibsd.spin bstc -b clibsd.spin
cp clibsd.binary ../root/devel/clibsd.bin cp clibsd.binary ${sd}/devel/clibsd.bin
rm clibsd.binary rm clibsd.binary
cd .. cd ..

View File

@ -1,6 +0,0 @@
1384486575
-6 3 0
0 0 0
GPWD /
LSCRIPT_FILE /bin/_shellrc
P# 0