Basic/make.sh

47 lines
1.2 KiB
Bash
Raw Normal View History

2014-04-30 20:24:00 +02:00
#! /bin/sh
# Definitionen
##D="-D __DEBUG -D __LANG_EN"
##D="-D __LANG_EN"
D="-D __LANG_DE"
# Pfade
##bin="../Bin"
bin="/home/ftp/hive"
sdbas="${bin}/sdcard/Basic"
sdsys="${bin}/sdcard/system"
libpath="../TriOS/lib"
BSTC="bstc"
# ----------------------------------------------------------------
# Alte Versionen löschen
rm -rf ${sdbas}
##rm -rf ${sdsys}/xxxx
mkdir -p ${sdbas}
##mkdir ${sdsys}
# ----------------------------------------------------------------
# Code für Administra und Bellatrix erzeugen
${BSTC} -L ${libpath} ${D} -D __ADM_FAT -D __ADM_FAT_EXT -D __ADM_RTC -D __ADM_SID -D __ADM_PLX -b -O a ../TriOS/flash/administra/admflash.spin
mv admflash.binary ${sdbas}/adm.sys
${BSTC} -L ${libpath} ${D} -b -O a source/belsVGA64.spin
mv belsVGA64.binary ${sdbas}/bel.sys
# ----------------------------------------------------------------
# Plexus-Programme erzeugen
${BSTC} -L ${libpath} ${D} -b -O a source/Basic2_1-word.spin
mv Basic2_1-word.binary ${sdbas}/Basic.bin
${BSTC} -L ${libpath} ${D} -b -O a source/Bashelp.spin
mv Bashelp.binary ${sdbas}/Help.bin
# ----------------------------------------------------------------
# Daten kopieren
cp -r data/* ${sdbas}