home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / devtools / softinst / bldrc.cm_ / BLDRC.CMD
Encoding:
Text File  |  1993-01-21  |  4.8 KB  |  131 lines

  1. /*********************************************************************/
  2. /*                      SOFTWARE INSTALLER                           */
  3. /* 5621-434 (C) COPYRIGHT IBM CORP. 1991, 1993. ALL RIGHTS RESERVED. */
  4. /*             LICENSED MATERIALS - PROPERTY OF IBM                  */
  5. /*********************************************************************/
  6. /*
  7. ** DO NOT MAKE ANY CHANGES TO THIS FILE!
  8. */
  9. Prefix = 'EPFPREFIX:EPF'
  10.  
  11. /* Query the new prefix */
  12. if pos(':', Prefix) <> 0
  13. then do
  14.    /* Prefix found */
  15.    parse value Prefix with . ':' RenamedPrefix
  16. end   /* end then */
  17. else do
  18.    /* Prefix not found; use default */
  19.    RenamedPrefix = 'EPF'
  20. end   /* end else */
  21.  
  22.    intro.1  = "   --------------------------------------------------------"
  23.    intro.2  = "   This command file builds the customized IIRC.RC file and"
  24.    intro.3  = "   binds it to the" RenamedPrefix"IDLDS.EXE executable.  In order to   "
  25.    intro.4  = "   successfully perform this build, the following must be  "
  26.    intro.5  = "   true:                                                   "
  27.    intro.6  = "     1.  The IBM OS/2 2.0 Toolkit must be installed.  The  "
  28.    intro.7  = "         build process uses the resource compiler that is  "
  29.    intro.8  = "         included in the Toolkit.                          "
  30.    intro.9  = "                                                           "
  31.    intro.10 = "     2.  The following files must be present in the        "
  32.    intro.11 = "         current directory:                                "
  33.    intro.12 = "            IIRC.RC             IIRCH.H                    "
  34.    intro.13 = "           " RenamedPrefix"IIIRS.RES       " RenamedPrefix"IDLDS.EXE               "
  35.    intro.14 = "            (any bitmap file that IIRC.RC references)      "
  36.    intro.15 = "                                                           "
  37.    intro.16 = "   --------------------------------------------------------"
  38.    intro.17 = "   Press <enter> to start the build.                       "
  39.  
  40.    compiling.1 = "--------------------------------------------------"
  41.    compiling.2 = "- Compiling the customizable resource file. . .  -"
  42.    compiling.3 = "--------------------------------------------------"
  43.  
  44.    creating.1 = "--------------------------------------------------"
  45.    creating.2 = "- Creating the bindable resource file . . .      -"
  46.    creating.3 = "--------------------------------------------------"
  47.  
  48.    binding.1 =  "--------------------------------------------------"
  49.    binding.2 =  "- Binding resources to the" RenamedPrefix"IDLDS.EXE . . .    -"
  50.    binding.3 =  "--------------------------------------------------"
  51.  
  52.    complete.1 = "**************************************************"
  53.    complete.2 = "* Build completed successfully.  You can now run *"
  54.    complete.3 = "*    " RenamedPrefix"IDLDS.EXE to test your changes.         *"
  55.    complete.4 = "**************************************************"
  56.  
  57.    error.1 = "**************************************************"
  58.    error.2 = "* Error occurred.  The build was not successful. *"
  59.    error.3 = "**************************************************"
  60.  
  61.    'cls'
  62.    say intro.1
  63.    say " "
  64.    say intro.2
  65.    say intro.3
  66.    say intro.4
  67.    say intro.5
  68.    say intro.6
  69.    say intro.7
  70.    say intro.8
  71.    say intro.9
  72.    say intro.10
  73.    say intro.11
  74.    say intro.12
  75.    say intro.13
  76.    say intro.14
  77.    say intro.15
  78.    say intro.16
  79.    say intro.17
  80.    pull .
  81.  
  82.  
  83.    /**************************************************************/
  84.    /* Compile IIRC.RC.                                           */
  85.    /**************************************************************/
  86.    'cls'
  87.    say " "
  88.    say compiling.1
  89.    say compiling.2
  90.    say compiling.3
  91.    'rc -r iirc.rc iirc.res'
  92.    if \(rc = 0) then signal error;
  93.  
  94.    /**************************************************************/
  95.    /* Concatenate the EPFIIIRS.RES file and the IIRC.RES file    */
  96.    /* together into ALL.RES.                                     */
  97.    /**************************************************************/
  98.    'cls'
  99.    say " "
  100.    say creating.1
  101.    say creating.2
  102.    say creating.3
  103.    'copy' RenamedPrefix'iiirs.res /B + iirc.res /B all.res'
  104.    if \(rc = 0) then signal error;
  105.  
  106.    /**************************************************************/
  107.    /* Bind ALL.RES to EPFIDLDS.EXE.                              */
  108.    /**************************************************************/
  109.    'cls'
  110.    say " "
  111.    say binding.1
  112.    say binding.2
  113.    say binding.3
  114.    'rc all.res' RenamedPrefix'idlds.exe'
  115.    if \(rc = 0) then signal error;
  116.  
  117.    say complete.1
  118.    say complete.2
  119.    say complete.3
  120.    say complete.4
  121.    call beep  1000,500
  122.    'erase all.res'
  123.    exit 0
  124.  
  125. error:
  126.    say " "
  127.    say error.1
  128.    say error.2
  129.    say error.3
  130.    exit rc
  131.