Use an absolute directory under /usr/share/games/ for game data
[kraptor.git] / fix.bat
blob7bfe8d8446545e9b60a1d489856fcdd59b89867e
1 @echo off\r
2 \r
3 rem Sets makefile source code for the different platforms\r
4 rem Based on fix.bat of Allegro.\r
5 rem Modified By Kronoman - In loving memory of my father.\r
6 \r
7 \r
8 echo Kraptor Engine\r
9 echo --------------\r
10 echo.\r
11 echo By Kronoman - In loving memory of my father\r
12 echo.\r
13 echo.\r
15 if [%1] == [linux]   goto linux\r
16 if [%1] == [djgpp]   goto djgpp\r
17 if [%1] == [mingw32] goto mingw32\r
18 if [%1] == [test] goto test\r
19 goto help\r
22 :test\r
23 REM REMEMBER TO ALTER THIS TEST TO SUIT YOUR NEEDS!!!\r
25 REM You first need to configure the platform\r
26 if exist target.os goto targetok\r
27     echo Before test, you first must configure your platform.\r
28 goto help\r
30 :targetok\r
32 echo Testing, please wait...\r
33 make test\r
35 if not errorlevel 0 goto testfail\r
36 if not exist test.run goto testfail\r
38     echo.\r
39     echo * SUCESS *\r
40     echo Congratulations, the test compiled!\r
41     echo.\r
43 goto testdone\r
45 :testfail\r
46     echo.\r
47     echo * ERROR *\r
48     echo.\r
49     echo The compilation returned a error!\r
50     echo Check that:\r
51     echo (*) You have all compiler tools installed (gcc,make,etc)\r
52     echo (*) You have Allegro library properly installed (http://alleg.sf.net/)\r
53     echo (*) You have DUMB Music library properly installed (http://dumb.sf.net/)\r
54     echo.\r
56 :testdone\r
57     echo Cleaning the test...\r
58     make cleantest\r
59     \r
60 goto done\r
62 :djgpp\r
63 echo Configuring for DOS/djgpp...\r
64 echo # Warning! This file will be overwritten by configuration routines! > target.os\r
65 echo TARGET=DJGPP>> target.os\r
66 goto done\r
69 :mingw32\r
70 echo Configuring for Windows/Mingw32...\r
71 echo # Warning! This file will be overwritten by configuration routines! > target.os\r
72 echo TARGET=MINGW32>> target.os\r
73 goto done\r
76 :linux\r
77 echo Configuring for Linux/GCC...\r
78 echo # Warning! This file will be overwritten by configuration routines! > target.os\r
79 echo TARGET=LINUX>> target.os\r
80 goto done\r
83 :help\r
84 echo Usage: fix platform\r
85 echo.\r
86 echo Where platform is one of: djgpp, mingw32 or linux. \r
87 echo.\r
88 echo NOTICE:\r
89 echo You can also call: fix test\r
90 echo to check if your system can compile this programs.\r
91 echo.\r
92 goto end\r
94 :done\r
95 echo Done!\r
97 :end