home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / xwplascr.zip / XWPL0208.ZIP / make.cmd < prev    next >
OS/2 REXX Batch file  |  2001-03-13  |  7KB  |  198 lines

  1. /* Make XWorkplace */
  2. "@echo off"
  3.  
  4. /*
  5.     This will call nmake to (re)build XWorkplace completely.
  6.  
  7.     Note that there are some directory checks below which might
  8.     not apply to your system, because I am also using this script
  9.     to update my "private" XWorkplace parts which are not included
  10.     in the source distribution. This applies mostly to all the
  11.     different NLS sources.
  12.  
  13.     However, this script is smart enough though to check for the
  14.     existence of those directories.
  15.  
  16.     Please check the below variables and adjust them to your
  17.     system before using this file.
  18.  
  19.     Also check the "setup.in" file, which has a few more options.
  20. */
  21.  
  22. /*
  23.     Change the following if you need some cmd file
  24.     which sets compiler environent variables; otherwise
  25.     comment this out. This is only because I don't like
  26.     all the VAC++ settings in CONFIG.SYS.
  27.  
  28.     If you have a standard VAC and toolkit installation
  29.     with all the variables set up in CONFIG.SYS, you
  30.     can comment these lines out.
  31. */
  32.  
  33. "call envicc.cmd"
  34. "call envproject.cmd"
  35.  
  36. /*  Set other required environment variables for the built
  37.     process. YOU MUST SET THESE, or building will fail.
  38.  
  39.     See PROGREF.INF for details. */
  40.  
  41. /* CVS_WORK_ROOT must point to the root of your CVS tree. */
  42. /* CVS_WORK_ROOT XWPRUNNING= */
  43.  
  44. /* XWPRUNNING (current XFolder/XWorkplace installation
  45.    from where WPS classes are registered; the executables
  46.    in there will be unlocked by the makefiles) */
  47. /* SET XWPRUNNING= */
  48.  
  49. /* XWPRELEASE (target for composing all new tree for releases;
  50.    this is only useful for creating a complete tree to create
  51.    a new .WPI file (for WarpIN); this is only used with
  52.    "nmake release") */
  53. /* SET XWPRELEASE= */
  54.  
  55. /* *** go! */
  56.  
  57. /* reset timer */
  58. call time("E")
  59. mydir = directory();
  60.  
  61. Say "***********************************************"
  62. Say "*  Making XWorkplace main module (./MAIN/)... *"
  63. Say "***********************************************"
  64. "nmake -nologo really_all"
  65.  
  66. Say "***********************************************"
  67. Say "*  Making NLS files...                        *"
  68. Say "***********************************************"
  69. Say "   Making /001/XFLDR001.DLL"
  70. "cd 001\dll"
  71. "nmake /nologo"
  72.  
  73. Say "   Making /001/INF.001/XFLDR001.INF..."
  74. "cd ..\inf.001"
  75. "nmake /nologo"
  76.  
  77. Say "   Making /001/HELP.001/XFLDR001.HLP..."
  78. "cd ..\xwphelp"
  79. "nmake /nologo"
  80. "cd ..\.."
  81.  
  82. /* if you want to create new NLS files, */
  83. /* change the following "049"'s to your */
  84. /* language code */
  85.  
  86. /* this is for German */
  87. LanguageDir  = "049_de"
  88. LanguageCode = "049"
  89.  
  90. if (stream(LanguageDir"\dll\makefile", "C", "QUERY EXISTS") \= "") then
  91. do
  92.     Say "  Making "LanguageDir"/XFLDR"LanguageCode".DLL..."
  93.     "cd "LanguageDir
  94.     "copy ..\001\inf.001\vers_2history.html .\inf."LanguageCode" > NUL"
  95.     "copy ..\001\inf.001\notices_41thanks.html .\inf."LanguageCode" > NUL"
  96.     "copy ..\001\inf.001\notices_42credits.html .\inf."LanguageCode" > NUL"
  97.     /* "copy ..\001\inf.001\further*.html .\inf.049 > NUL" */
  98.     "cd dll"
  99.     "nmake /nologo"
  100.     Say "  Making "LanguageDir"/XFLDR"LanguageCode".INF..."
  101.     "cd ..\inf."LanguageCode
  102.     "nmake /nologo"
  103.     Say "  Making "LanguageDir"/XFLDR"LanguageCode".HLP..."
  104.     "cd ..\help."LanguageCode
  105.     "nmake /nologo"
  106.     "cd "mydir
  107. end;
  108.  
  109. /* this is for Spanish */
  110.  
  111. LanguageDir  = "034_es"
  112. LanguageCode = "034"
  113.  
  114. if (stream(LanguageDir"\dll\makefile", "C", "QUERY EXISTS") \= "") then
  115. do
  116.     Say "  Making "LanguageDir"/XFLDR"LanguageCode".DLL..."
  117.     "cd "LanguageDir
  118. /*     "copy ..\001\inf.001\vers_2history.html .\inf."LanguageCode" > NUL" */
  119. /*     "copy ..\001\inf.001\notices_41thanks.html .\inf."LanguageCode" > NUL" */
  120. /*     "copy ..\001\inf.001\notices_42credits.html .\inf."LanguageCode" > NUL" */
  121. /*     "copy ..\001\inf.001\further*.html .\inf."LanguageCode" > NUL" */
  122.     "nmake /nologo xfldr"LanguageCode".mak"
  123. /*    Say "  Making "LanguageDir"/XFLDR"LanguageCode".INF..."
  124.      "cd inf."LanguageCode
  125.     "nmake /nologo inf"LanguageCode".mak"
  126.     Say "  Making "LanguageDir"/XFLDR"LanguageCode".HLP..."
  127.     "cd ..\help."LanguageCode
  128.     "nmake /nologo help"LanguageCode".mak" */
  129.     "cd "mydir
  130. end;
  131.  
  132. /* this is for Swedish */
  133.  
  134. LanguageDir  = "046_se"
  135. LanguageCode = "046"
  136.  
  137. if (stream(LanguageDir"\dll\makefile", "C", "QUERY EXISTS") \= "") then
  138. do
  139.     Say "  Making "LanguageDir"/XFLDR"LanguageCode".DLL..."
  140.     "cd "LanguageDir
  141. /*     "copy ..\001\inf.001\vers_2history.html .\inf."LanguageCode" > NUL" */
  142. /*     "copy ..\001\inf.001\notices_41thanks.html .\inf."LanguageCode" > NUL" */
  143. /*     "copy ..\001\inf.001\notices_42credits.html .\inf."LanguageCode" > NUL" */
  144. /*     "copy ..\001\inf.001\further*.html .\inf."LanguageCode" > NUL" */
  145.     "nmake /nologo xfldr"LanguageCode".mak"
  146.     Say "  Making "LanguageDir"/XFLDR"LanguageCode".INF..."
  147.     "cd inf."LanguageCode
  148.     "nmake /nologo inf"LanguageCode".mak"
  149.     Say "  Making "LanguageDir"/XFLDR"LanguageCode".HLP..."
  150.     "cd ..\help."LanguageCode
  151.     "nmake /nologo help"LanguageCode".mak"
  152.     "cd "mydir
  153. end;
  154.  
  155. /* this is for Czech */
  156.  
  157. LanguageDir  = "421_cz"
  158. LanguageCode = "421"
  159.  
  160. if (stream(LanguageDir"\dll\makefile", "C", "QUERY EXISTS") \= "") then
  161. do
  162.     Say "  Making "LanguageDir"/XFLDR"LanguageCode".DLL..."
  163.     "cd "LanguageDir
  164. /*     "copy ..\001\inf.001\vers_2history.html .\inf."LanguageCode" > NUL" */
  165. /*     "copy ..\001\inf.001\notices_41thanks.html .\inf."LanguageCode" > NUL" */
  166. /*     "copy ..\001\inf.001\notices_42credits.html .\inf."LanguageCode" > NUL" */
  167. /*     "copy ..\001\inf.001\further*.html .\inf."LanguageCode" > NUL" */
  168.     "nmake /nologo xfldr"LanguageCode".mak"
  169. /*    Say "  Making "LanguageDir"/XFLDR"LanguageCode".INF..."
  170.      "cd inf."LanguageCode
  171.     "nmake /nologo inf"LanguageCode".mak"
  172.     Say "  Making "LanguageDir"/XFLDR"LanguageCode".HLP..."
  173.     "cd ..\help."LanguageCode
  174.     "nmake /nologo help"LanguageCode".mak" */
  175.     "cd "mydir
  176. end;
  177.  
  178. /* XWorkplace Programming Guide and Reference; this
  179.    only exists on my harddisk ;-) */
  180. if (stream("..\progref\progref.mak", "C", "QUERY EXISTS") \= "") then do
  181.     Say "  Making ..\progref\xfsrc.mak"
  182.     "cd ..\progref"
  183.     "copy ..\xwpsource\001\inf.001\notices_1licence.html"
  184.     "nmake /nologo progref.mak"
  185.     "cd "mydir
  186. end
  187.  
  188. /* show elapsed time */
  189. seconds = time("e"); /* in seconds */
  190. minutes = trunc(seconds/60);
  191. seconds2 = trunc(seconds - (minutes*60));
  192. Say;
  193. Say "Done!"
  194. Say "Elapsed time: "minutes" minutes, "seconds2" seconds."
  195. "pause"
  196.  
  197.  
  198.