/[projet1]/public/pc/tools/osdk/main/Osdk/_final_/Euphoric/osdk_euphoric.bat
Defence Force logotype

Contents of /public/pc/tools/osdk/main/Osdk/_final_/Euphoric/osdk_euphoric.bat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 781 - (show annotations)
Sat Jan 21 22:33:21 2012 UTC (8 years ago) by dbug
File MIME type: text/plain
File size: 2090 byte(s)
Updated the depot with the source code of the OSDK 0.019
1 @ECHO OFF
2
3 ::
4 :: Initial check.
5 :: Verify if the SDK is correctly configurated,
6 ::
7 IF "%OSDK%"=="" GOTO ErCfg
8
9 ::
10 :: Then we create the correct Euphoric command line call
11 :: depending of parameters we have:
12 :: - Rom choice
13 :: - Machine choice
14 ::
15 SET OSDKEUPHORIC=euphoric.exe
16
17 :: - Tape or Disk based
18 IF "%OSDKDISK%"=="" SET OSDKEUPHORIC=%OSDKEUPHORIC% OSDK.TAP
19 IF NOT "%OSDKDISK%"=="" SET OSDKEUPHORIC=%OSDKEUPHORIC% -d OSDK.DSK
20
21
22 ::
23 :: Check if the program was compiled
24 :: Then copy the compiled program into Euphoric folder
25 ::
26 IF EXIST build\%OSDKNAME%.TAP GOTO OkFile
27 IF EXIST build\%OSDKNAME%.DSK GOTO OkFile
28 IF EXIST %OSDKDISK% GOTO OkFile
29 GOTO ErBld
30
31 :OkFile
32 COPY build\%OSDKNAME%.TAP %OSDK%\Euphoric\OSDK.TAP >NUL
33 COPY build\%OSDKNAME%.DSK %OSDK%\Euphoric\OSDK.DSK >NUL
34 COPY build\symbols %OSDK%\Euphoric\symbols >NUL
35
36
37 ::
38 :: Special detection to see if we should run Euphoric
39 :: directly, or using an alternate system (like DOSBox)
40 ::
41 IF "%OSDKDOSBOX%"=="" GOTO RunDefault
42
43 ::
44 :: Execute the emulator (DosBOX Version)
45 ::
46 :RunDosBox
47 TYPE %OSDK%\BIN\dosbox.conf > %OSDK%\Euphoric\dosbox.conf
48 ECHO mount c %osdk%\Euphoric >> %OSDK%\Euphoric\dosbox.conf
49 ECHO c: >> %OSDK%\Euphoric\dosbox.conf
50 ECHO SET ORIC=c:\ >> %OSDK%\Euphoric\dosbox.conf
51 ECHO %OSDKEUPHORIC% >> %OSDK%\Euphoric\dosbox.conf
52 pushd %OSDK%\Euphoric
53 "%OSDKDOSBOX%"
54 popd
55 GOTO End
56
57
58
59 ::
60 :: Execute the emulator in fullscreen default mode
61 ::
62 :RunDefault
63 SET ORIC=%OSDK%\Euphoric\
64 CD %OSDK%\Euphoric
65 CALL %OSDKEUPHORIC%
66 GOTO End
67
68
69
70 ::
71 :: Outputs an error message about configuration
72 ::
73 :ErCfg
74 ECHO == ERROR ==
75 ECHO The Oric SDK was not configured properly
76 ECHO You should have a OSDK environment variable setted to the location of the SDK
77 ECHO ===========
78 IF "%OSDKBRIEF%"=="" PAUSE
79 GOTO End
80
81 ::
82 :: Outputs an error message about compilation
83 ::
84 :ErBld
85 ECHO == ERROR ==
86 ECHO Before executing this program, you need to build it.
87 ECHO Please run OSDK_BUILD.BAT before.
88 ECHO ===========
89 IF "%OSDKBRIEF%"=="" PAUSE
90 GOTO End
91
92 :End

  ViewVC Help
Powered by ViewVC 1.1.26