home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 3.ddi / BATSRC.ZIP / MAKEDIRS.BAT < prev    next >
Encoding:
DOS Batch File  |  1992-06-10  |  1.4 KB  |  56 lines

  1. @echo off
  2. rem  This batch file will make the object file directories necessary to
  3. rem  build the Borland C++ 3.0 Run Time Libraries.
  4.  
  5. if /%1==/ goto error
  6.  
  7. rem  ALL as the parameter will make all subdirectories.
  8.  
  9. if not /%1==/all goto %1
  10.  
  11. md lib
  12. md log
  13.  
  14. :clib
  15. for %%m in (s m c l h d) do md clib\%%m
  16. for %%m in (s m c l h) do md clib\%%mp
  17. for %%m in (s m c l)   do md clib\w%%m
  18. for %%m in (s m c l)   do md clib\w%%mp
  19. for %%m in (m l)       do md clib\b%%m
  20. if not /%1==/all goto end
  21.  
  22. :winlib
  23. for %%m in (s m c l d) do md winlib\%%m
  24. for %%m in (s m c l) do md winlib\%%mp
  25. if not /%1==/all goto end
  26.  
  27. :iostream
  28. for %%m in (s m c l h d) do md iostream\%%m
  29. for %%m in (s m c l)   do md iostream\w%%m
  30. if not /%1==/all goto end
  31.  
  32. :math
  33. for %%m in (s m c l h d) do md math\%%m
  34. for %%m in (s m c l  ) do md math\w%%m
  35. if not /%1==/all goto end
  36.  
  37. goto end
  38.  
  39. :error
  40. echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  41. echo !!                                            !!
  42. echo !!  ERROR: Must pass option parameter         !!
  43. echo !!                                            !!
  44. echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  45. echo.
  46. echo.
  47. echo   syntax: makedirs  {options}
  48. echo.
  49. echo.   
  50. echo   Options for the "options" argument:
  51. echo.
  52. echo   all - will create each object file directory, or:
  53. echo   clib  winlib  iostream  math
  54. echo.
  55. :end
  56.