home *** CD-ROM | disk | FTP | other *** search
/ UnrealScript Game Programming All in One / UnrealScriptGameProgrammingAllInOne.iso / UGPAIOListings / CH08LIST_BACKUP / System / executeUCC.bat < prev    next >
Encoding:
DOS Batch File  |  2006-01-23  |  699 b   |  33 lines

  1.  
  2. echo executeUCC.bat
  3. @echo off
  4. @rem executeUCC.bat
  5.  
  6. rem #1
  7. if "%1"=="" (
  8.   echo You must enter a package name
  9.   echo make [package_name]
  10.   echo or if using context, the first line
  11.   echo of your program must be //%PARAMETERS = [package_name] [path_to_UT2004]
  12.   echo example: Make HelloWorld c:\ut2004
  13.   goto ERROR
  14. )
  15.  
  16. rem #2
  17. if "%2"=="" (
  18.   echo You must enter the name of the class
  19.   echo or if using ConTEXT, the first line
  20.   echo of your program must be //%PARAMETERS = [package_name] [path_to_UT2004]
  21.   echo example: Make HelloWorld c:\UT2004
  22.   goto ERROR
  23. )
  24.  
  25. rem #3
  26. @rem This program executes compiled package
  27. ucc %1.%2
  28. goto EOF
  29.  
  30. :ERROR
  31.  echo no action taken
  32.  
  33. :EOF