add windows build script (make.bat)

This commit is contained in:
Jörg Deckert 2014-05-07 16:12:35 +02:00
parent f61d62dd36
commit 9ea01465cb
2 changed files with 51 additions and 0 deletions

1
.gitattributes vendored
View File

@ -4,6 +4,7 @@
*.spin text
*.bat text eol=crlf
*.BAS text eol=crlf
DATA.DAT text eol=crlf

50
make.bat Normal file
View File

@ -0,0 +1,50 @@
echo on
date /T
time /T
REM # Definitionen
REM set D="-D __DEBUG -D __LANG_EN"
REM set D="-D __LANG_EN"
set D="-D __LANG_DE"
REM # Pfade
set bin="..\Bin"
REM set bin="\home\ftp\hive"
set sdbas="%bin%\sdcard\Basic"
set sdsys="%bin%\sdcard\system"
set libpath="..\TriOS\lib"
set BSTC=bstc.exe
REM ----------------------------------------------------------------
REM Alte Versionen löschen
rmdir %sdbas% /S /Q
REM del %sdsys%\xxxx
mkdir %sdbas%
REM mkdir %sdsys%
REM ----------------------------------------------------------------
REM 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
move admflash.binary %sdbas%\adm.sys
%BSTC% -L %libpath% %D% -b -O a .\source\belsVGA64.spin
move belsVGA64.binary %sdbas%\bel.sys
REM ----------------------------------------------------------------
REM Basic-Programme erzeugen
%BSTC% -L %libpath% %D% -b -O a .\source\Basic2_1-word.spin
move Basic2_1-word.binary %sdbas%\Basic.bin
%BSTC% -L %libpath% %D% -b -O a .\source\Bashelp.spin
move Bashelp.binary %sdbas%\Help.bin
REM ----------------------------------------------------------------
REM Daten kopieren
xcopy .\data\*.* %sdbas%\ /S /E
echo off