home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 20.ddi / SAMPLES / MAKEAPP / MAKEAPP.BA_ / MAKEAPP.BA
Encoding:
Text File  |  1993-02-08  |  1.9 KB  |  61 lines

  1. @echo off
  2. set _dstdir=%1
  3. set _file=%2
  4. set _class=%3
  5.  
  6. if "%_dstdir%"=="" goto help
  7. if "%_file%"=="" goto help
  8. if "%_class%"=="" goto help
  9. if not exist .\makeapp.rc goto help
  10. goto gotparms
  11. :help
  12. echo.
  13. echo MAKEAPP - Generic Windows application generator
  14. echo.
  15. echo Usage:   makeapp destdir filename ClassName
  16. echo.
  17. echo Example: makeapp c:\myapp myapp MyApp
  18. echo          nmake
  19. echo.
  20. echo Must be run from MAKEAPP directory.
  21. echo.
  22. goto exit
  23.  
  24. :gotparms
  25. echo.
  26. echo Creating %_class% application in %_dstdir%...
  27.  
  28. if exist %_dstdir%\con goto nomkdir
  29. mkdir %_dstdir%
  30. :nomkdir
  31. call makeapp2 makefile    %_dstdir%\makefile   %_file% %_class%
  32. call makeapp2 makeapp.rc  %_dstdir%\%_file%.rc  %_file% %_class%
  33. copy          makeapp.ico %_dstdir%\%_file%.ico >nul
  34. call makeapp2 makeapp.def %_dstdir%\%_file%.def %_file% %_class%
  35. call makeapp2 makeapp.rc  %_dstdir%\%_file%.rc  %_file% %_class%
  36. call makeapp2 makeapp.ver %_dstdir%\%_file%.ver %_file% %_class%
  37. call makeapp2 makeapp.h   %_dstdir%\%_file%.h   %_file% %_class%
  38. call makeapp2 makeapp.dlg %_dstdir%\%_file%.dlg %_file% %_class%
  39. call makeapp2 app.c       %_dstdir%\app.c      %_file% %_class%
  40. call makeapp2 app.h       %_dstdir%\app.h      %_file% %_class%
  41. call makeapp2 frame.c     %_dstdir%\frame.c    %_file% %_class%
  42. call makeapp2 frame.h     %_dstdir%\frame.h    %_file% %_class%
  43. call makeapp2 client.c    %_dstdir%\client.c   %_file% %_class%
  44. call makeapp2 client.h    %_dstdir%\client.h   %_file% %_class%
  45. call makeapp2 dlg.c       %_dstdir%\dlg.c      %_file% %_class%
  46. call makeapp2 dlg.h       %_dstdir%\dlg.h      %_file% %_class%
  47. call makeapp2 dlgdefs.h   %_dstdir%\dlgdefs.h  %_file% %_class%
  48. call makeapp2 menu.h      %_dstdir%\menu.h     %_file% %_class%
  49.  
  50. echo.
  51. echo Done!
  52. echo.
  53. echo Type nmake to create %_file%.exe
  54. echo.
  55. cd %_dstdir%
  56.  
  57. :exit
  58. set _dstdir=
  59. set _file=
  60. set _class=
  61.