home *** CD-ROM | disk | FTP | other *** search
- @echo off
- rem Make.bat
- rem #1
- if "%1"=="" (
- echo You must enter a package name
- echo make [package_name]
- echo or if using context, the first line
- echo of your program must be //%PARAMETERS = [package_name] [path_to_UT2004]
- echo example: Make HelloWorld c:\ut2004
-
- goto ERROR
- )
-
- rem #2
- if "%2"=="" (
- echo You must enter the path to the UT2004 directory
- echo or if using ConTEXT, the first line
- echo of your program must be //%PARAMETERS = [package_name] [path_to_UT2004]
- echo example: Make HelloWorld c:\ut2004
- goto ERROR
- )
-
-
- rem #3
- echo Okay, package named: %1
- echo Deleting %1.u...
- if exist %2\System\%1.u del %2\System\%1.u
-
- echo Deleted %1.u...
-
- rem #4
-
- if NOT exist %2\System\UT2004_%1.ini (
- echo create UT2004_%1.ini
- echo before proceeding
- goto ERROR
- )
-
- rem #5
-
- %2\System\ucc make -ini=%2\System\UT2004_%1.ini
- goto DONE
- :ERROR
- echo No action performed
- goto EOF
- :DONE
- echo Make action complete
- :EOF
-
-