home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p120 / 4.ddi / MENU.ZIP / BUILD / SETGRAPH.BAT < prev    next >
Encoding:
DOS Batch File  |  1991-08-23  |  1.8 KB  |  76 lines

  1. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  2. ::  USAGE  : setgraph  <driver>
  3. :: PURPOSE
  4. ::       To install the graphics drivers for the new menu
  5. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  6. echo off
  7. cls
  8.  
  9. :***  Check for <driver> argument
  10.  
  11. if %1A == A goto error1
  12.  
  13. :***  Check that \newmenu\build\drivers exists
  14.  
  15. copy %0.bat \newmenu\build\drivers\aaaaaaaa.aaa >nul
  16. if not exist \newmenu\build\drivers\aaaaaaaa.aaa goto error2
  17. del \newmenu\build\drivers\aaaaaaaa.aaa
  18.  
  19. :***  Check that \newmenu\build\drivers\<driver>.{dev,def,sgx} exists
  20.  
  21. if not exist \newmenu\build\drivers\%1.dev goto error3
  22. if not exist \newmenu\build\drivers\%1.def goto error4
  23. if not exist \newmenu\build\drivers\%1.sgx goto error5
  24.  
  25. :***  Check that \parts exists
  26.  
  27. copy %0.bat \parts\aaaaaaaa.aaa >nul
  28. if not exist \parts\aaaaaaaa.aaa goto error6
  29. del \parts\aaaaaaaa.aaa
  30.  
  31. cd \parts
  32. copy \newmenu\build\drivers\%1.dev graphics.dev  >nul
  33. copy \newmenu\build\drivers\%1.def graphics.def  >nul
  34. copy \newmenu\build\drivers\%1.sgx graphics.sgx  >nul
  35. bldf graphics
  36. goto end
  37.  
  38. :error1
  39. echo   
  40. echo [setgraph]   USAGE :   setgraph  drivername
  41. echo              where drivername is the driver name without extension.
  42. echo   
  43. goto end
  44.  
  45. :error2
  46. echo   
  47. echo [setgraph]  Directory  \newmenu\build\drivers  does not exist.
  48. echo   
  49. goto end
  50.  
  51. :error3
  52. echo   
  53. echo [setgraph]  File  \newmenu\build\drivers\%1.dev  does not exist.
  54. echo   
  55. goto end
  56.  
  57. :error4
  58. echo   
  59. echo [setgraph]  File  \newmenu\build\drivers\%1.def  does not exist.
  60. echo   
  61. goto end
  62.  
  63. :error5
  64. echo   
  65. echo [setgraph]  File  \newmenu\build\drivers\%1.sgx  does not exist.
  66. echo   
  67. goto end
  68.  
  69. :error6
  70. echo   
  71. echo [setgraph]  Directory  \parts  does not exist.
  72. echo   
  73. goto end
  74.  
  75. :end
  76.