TriOS/make.sh

80 lines
2.2 KiB
Bash
Raw Normal View History

2013-12-10 15:42:02 +01:00
#! /bin/sh
# Definitionen
##D="-D __DEBUG -D __LANG_EN"
##D="-D __LANG_EN"
D="-D __LANG_DE"
2013-12-10 15:42:02 +01:00
# Pfade
##bin="../Bin"
bin="/home/ftp/hive"
2013-12-10 15:42:02 +01:00
sd="${bin}/sdcard"
sdsys="${bin}/sdcard/system"
flash="${bin}/flash"
libpath="lib"
BSTC="bstc"
# ----------------------------------------------------------------
# Alte Versionen löschen
rm -rf ${bin}
mkdir -p ${sdsys}
mkdir ${flash}
# ----------------------------------------------------------------
# Flashdateien erzeugen
# --> bin/flash
${BSTC} -L ${libpath} ${D} -b -O a flash/administra/admflash.spin
2013-12-10 15:42:02 +01:00
cp admflash.binary ${flash}
mv admflash.binary ${sdsys}/admsys.adm
${BSTC} -L ${libpath} ${D} -D __VGA -b -O a flash/bellatrix/belflash.spin
2013-12-10 15:42:02 +01:00
cp belflash.binary ${flash}
mv belflash.binary ${sdsys}/vga.bel
${BSTC} -L ${libpath} ${D} -D __TV -b -O a flash/bellatrix/belflash.spin
2013-12-10 15:42:02 +01:00
mv belflash.binary ${sdsys}/tv.bel
${BSTC} -L ${libpath} ${D} -b -O a flash/regnatix/regflash.spin
2013-12-10 15:42:02 +01:00
mv regflash.binary ${flash}
# ----------------------------------------------------------------
# Startdateie erzeugen
# reg.sys (Regime)
# --> bin/sdcard\
${BSTC} -L ${libpath} ${D} -b -O a system/regnatix/regime.spin
2013-12-10 15:42:02 +01:00
mv regime.binary ${sd}/reg.sys
# ----------------------------------------------------------------
# Slave-Dateien erzeugen
# admsid, admay, admnet
# htxt, g0key
${BSTC} -L ${libpath} ${D} -b -O a system/administra/admsid/admsid.spin
2013-12-10 15:42:02 +01:00
mv admsid.binary ${sdsys}/admsid.adm
${BSTC} -L ${libpath} ${D} -b -O a system/administra/admay/admay.spin
2013-12-10 15:42:02 +01:00
mv admay.binary ${sdsys}/admay.adm
${BSTC} -L ${libpath} ${D} -b -O a system/administra/admnet/admnet.spin
2013-12-10 15:42:02 +01:00
mv admnet.binary ${sdsys}/admnet.adm
${BSTC} -L ${libpath} ${D} -b -O a system/bellatrix/bel-htext/htext.spin
2013-12-10 15:42:02 +01:00
mv htext.binary ${sdsys}/htext.bel
${BSTC} -L ${libpath} ${D} -b -O a system/bellatrix/bel-g0/g0key.spin
2013-12-10 15:42:02 +01:00
mv g0key.binary ${sdsys}/g0key.bel
# ----------------------------------------------------------------
# Systemdateien erzeugen
# - div. externe Kommandos
# - div. Systemdateien (Farbtabellen usw.)
# --> bin/sdcard/system/
for FILE in system/regnatix/*.spin ; do
${BSTC} -L ${libpath} ${D} -b -O a ${FILE}
2013-12-10 15:42:02 +01:00
BASE="`basename ${FILE} .spin`"
mv "${BASE}.binary" "${sdsys}/${BASE}.bin"
done
cp forth/* ${sdsys}
cp system/sonstiges/* ${sdsys}