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

  1. @echo off
  2. rem Make.bat
  3. rem #1
  4. if "%1"=="" (
  5. echo You must enter a package name
  6. echo make [package_name]
  7. echo or if using context, the first line
  8. echo of your program must be //%PARAMETERS = [package_name] [path_to_UT2004]
  9. echo example: Make HelloWorld c:\ut2004
  10. goto ERROR
  11. )
  12.  
  13. rem #2
  14. if "%2"=="" (
  15.   echo You must enter the path to the UT2004 directory
  16.   echo or if using ConTEXT, the first line
  17.   echo of your program must be //%PARAMETERS = [package_name] [path_to_UT2004]
  18.   echo example: Make HelloWorld c:\ut2004
  19.   goto ERROR
  20. )
  21.  
  22.  
  23. rem #3
  24. echo Okay, package named:  %1
  25. echo Deleting %1.u...
  26. if exist %2\System\%1.u del %2\System\%1.u
  27.  
  28. echo Deleted %1.u...
  29.  
  30. rem #4
  31.  
  32. if NOT exist %2\System\UT2004_%1.ini (
  33.   echo create UT2004_%1.ini
  34.   echo before proceeding
  35.   goto ERROR
  36. )
  37.  
  38. rem #5
  39.  
  40. %2\System\ucc make -ini=%2\System\UT2004_%1.ini
  41. goto DONE
  42. :ERROR
  43. echo No action performed
  44. goto EOF
  45. :DONE
  46. echo Make action complete
  47. :EOF
  48.  
  49.