Rev 922 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log
| Rev 922 | Rev 930 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | @echo off |
1 | @echo off |
| 2 | if not exist %CD% ( |
2 | if not exist %CD% ( |
| 3 | echo ERROR: No spaces allowed in the path. |
3 | echo Error: No spaces allowed in the path! |
| 4 | pause |
4 | pause |
| 5 | exit |
5 | exit |
| 6 | ) |
6 | ) |
| 7 | if not "%settedpath%"=="" ( |
7 | if NOT "%settedpath%"=="" exit /b |
| 8 | echo Environment variables are already set - skipping. |
- | |
| 9 | exit /b |
- | |
| 10 | ) |
- | |
| 11 | echo Setting environment variables... |
- | |
| 12 | - | ||
| 13 | rem Flags |
- | |
| 14 | set settedpath=1 |
8 | set settedpath=1 |
| 15 | - | ||
| 16 | rem Paths |
- | |
| 17 | call :ExpandRootDir %~dp0..\.. |
9 | call :ExpandRootDir %~dp0..\.. |
| 18 | set SRCDIR=%ROOTDIR%src\ |
- | |
| 19 | set SDKDIR=%SRCDIR%_sdk\ |
- | |
| 20 | set TOOLSDIR=%ROOTDIR%tools\ |
- | |
| 21 | set EMULDIR=%ROOTDIR%us\ |
- | |
| 22 | set PATH=%TOOLSDIR%;%TOOLSDIR%mingw\;%TOOLSDIR%msys\;%ROOTDIR%;%ROOTDIR%us\;%SRCDIR%nedolang\_sdk\;%PATH% |
10 | set path=%rootdir%\tools\;%rootdir%;%rootdir%\us\;%rootdir%\src\_sdk\;%rootdir%\src\nedolang\_sdk\;%PATH% |
| 23 | set INSTALLDIR=%ROOTDIR%release\ |
- | |
| 24 | set BIN_INSTALLDIR=%INSTALLDIR%bin\ |
- | |
| 25 | set RES_INSTALLDIR=%INSTALLDIR%bin\ |
- | |
| 26 | set DOC_INSTALLDIR=%INSTALLDIR%doc\ |
- | |
| 27 | - | ||
| 28 | rem Shell hacks |
- | |
| 29 | set COMMENT=@rem |
- | |
| 30 | set NUL=nul |
- | |
| 31 | - | ||
| 32 | rem GNU core utilities |
- | |
| 33 | set CAT=%TOOLSDIR%msys\cat.exe |
- | |
| 34 | set CP=%TOOLSDIR%msys\cp.exe |
- | |
| 35 | set MKDIR=%TOOLSDIR%msys\mkdir.exe -p |
- | |
| 36 | set MV=%TOOLSDIR%msys\mv.exe |
- | |
| 37 | set RM=%TOOLSDIR%msys\rm.exe -f |
- | |
| 38 | set RMDIR=%TOOLSDIR%msys\rmdir.exe |
- | |
| 39 | - | ||
| 40 | rem XZ utilities |
- | |
| 41 | set XZ=%TOOLSDIR%msys\xz.exe |
- | |
| 42 | - | ||
| 43 | rem GNU make utility |
- | |
| 44 | set MAKE=%TOOLSDIR%mingw\make.exe |
- | |
| 45 | set MFLAGS=-w |
- | |
| 46 | - | ||
| 47 | rem SjAsmPlus compiler |
- | |
| 48 | set AS=%TOOLSDIR%sjasmplus |
- | |
| 49 | set AFLAGS=--nologo --msg=war |
- | |
| 50 | - | ||
| 51 | rem Free Pascal compiler |
- | |
| 52 | set FPC=fpc |
- | |
| 53 | set FPFLAGS= |
- | |
| 54 | - | ||
| 55 | rem SDK tools |
- | |
| 56 | set MHMT=%TOOLSDIR%mhmt.exe |
- | |
| 57 | set DMIMG=%TOOLSDIR%dmimg.exe |
- | |
| 58 | set DMIMG_ADDDIR=%TOOLSDIR%dmimg-adddir.bat |
- | |
| 59 | set CONVEGA=%SDKDIR%bin\convega.exe |
- | |
| 60 | set NEDOPAD=%SDKDIR%bin\nedopad.exe |
- | |
| 61 | set NEDORES=%SDKDIR%bin\nedores.exe |
- | |
| 62 | set NEDOTRD=%SDKDIR%bin\nedotrd.exe |
- | |
| 63 | - | ||
| 64 | rem Z80 emulator |
- | |
| 65 | set EMUL=%EMULDIR%emul.exe |
- | |
| 66 | exit /b |
11 | exit /b |
| 67 | 12 | ||
| 68 | :ExpandRootDir |
13 | :ExpandRootDir |
| 69 | set ROOTDIR=%~f1\ |
14 | set rootdir=%~f1 |
| 70 | exit /b |
15 | exit /b |