Add Linux make script (make.sh)
This commit is contained in:
parent
8f2077df1b
commit
b60e2dd4ee
|
@ -0,0 +1,75 @@
|
||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
date
|
||||||
|
|
||||||
|
# Pfade
|
||||||
|
bin="../Bin"
|
||||||
|
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} -b -O a flash/administra/admflash.spin
|
||||||
|
cp admflash.binary ${flash}
|
||||||
|
mv admflash.binary ${sdsys}/admsys.adm
|
||||||
|
|
||||||
|
${BSTC} -L ${libpath} -D __VGA -b -O a flash/bellatrix/belflash.spin
|
||||||
|
cp belflash.binary ${flash}
|
||||||
|
mv belflash.binary ${sdsys}/vga.bel
|
||||||
|
|
||||||
|
${BSTC} -L ${libpath} -D __TV -b -O a flash/bellatrix/belflash.spin
|
||||||
|
mv belflash.binary ${sdsys}/tv.bel
|
||||||
|
|
||||||
|
${BSTC} -L ${libpath} -b -O a flash/regnatix/regflash.spin
|
||||||
|
mv regflash.binary ${flash}
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------
|
||||||
|
# Startdateie erzeugen
|
||||||
|
# reg.sys (Regime)
|
||||||
|
# --> bin/sdcard\
|
||||||
|
|
||||||
|
${BSTC} -L ${libpath} -b -O a system/regnatix/regime.spin
|
||||||
|
mv regime.binary ${sd}/reg.sys
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------
|
||||||
|
# Slave-Dateien erzeugen
|
||||||
|
# admsid, admay, admnet
|
||||||
|
# htxt, g0key
|
||||||
|
|
||||||
|
${BSTC} -L ${libpath} -b -O a system/administra/admsid/admsid.spin
|
||||||
|
mv admsid.binary ${sdsys}/admsid.adm
|
||||||
|
${BSTC} -L ${libpath} -b -O a system/administra/admay/admay.spin
|
||||||
|
mv admay.binary ${sdsys}/admay.adm
|
||||||
|
${BSTC} -L ${libpath} -b -O a system/administra/admnet/admnet.spin
|
||||||
|
mv admnet.binary ${sdsys}/admnet.adm
|
||||||
|
|
||||||
|
${BSTC} -L ${libpath} -b -O a system/bellatrix/bel-htext/htext.spin
|
||||||
|
mv htext.binary ${sdsys}/htext.bel
|
||||||
|
${BSTC} -L ${libpath} -b -O a system/bellatrix/bel-g0/g0key.spin
|
||||||
|
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} -b -O a ${FILE}
|
||||||
|
BASE="`basename ${FILE} .spin`"
|
||||||
|
mv "${BASE}.binary" "${sdsys}/${BASE}.bin"
|
||||||
|
done
|
||||||
|
cp forth/* ${sdsys}
|
||||||
|
cp system/sonstiges/* ${sdsys}
|
Loading…
Reference in New Issue