| 1 |
|
|---|
| 2 | The first Warpin installation of FM/2 is in development. In order to
|
|---|
| 3 | encourage others to assist in the development and testing of this
|
|---|
| 4 | Warpin installation, it is has been made possible for just about
|
|---|
| 5 | anyone to create the WPI file needed for a Warpin installation of FM/2:
|
|---|
| 6 | 1) REXX support is required.
|
|---|
| 7 | 2) Install Warpin, if it is not already installed
|
|---|
| 8 | 3) Install SVN software so you can download the FM/2 repository
|
|---|
| 9 | 4) Gather the files from an FM/2 distribution that will be added to
|
|---|
| 10 | the WPI file.
|
|---|
| 11 | a) Select a drive and directory into which you want the FM/2
|
|---|
| 12 | repository downloaded. This drive must support long filenames.
|
|---|
| 13 | b) Perform an initial SVN CHECKOUT to download the FM/2 repository.
|
|---|
| 14 | (See http://svn.netlabs.org/fm2 for information on how to
|
|---|
| 15 | download the repository.) This will
|
|---|
| 16 | 1) create a subdirectory, often named "trunk", into which the
|
|---|
| 17 | repository is downloaded. This directory will be referred to
|
|---|
| 18 | as <trunk-dir> below.
|
|---|
| 19 | 2) create a subdirectory named "warpin" into which the files
|
|---|
| 20 | described below are downloaded
|
|---|
| 21 | c) You now have the source files. You also need the binary files.
|
|---|
| 22 | These can be obtained in two ways:
|
|---|
| 23 | 1) If you are a programmer and you have IBM C++ 3.65 and the OS/2
|
|---|
| 24 | toolkit installed, then you will be referred to below as
|
|---|
| 25 | <Developers>. <Developers> should run NMAKE ALL to build the
|
|---|
| 26 | FM/2 binary files.
|
|---|
| 27 | 2) For others, referred to below as <Others>, you should
|
|---|
| 28 | a) Download a zipped distribution of FM/2 (e.g. fm2-3_08beta.zip)
|
|---|
| 29 | b) Create a new (i.e. empty) directory. This directory will be
|
|---|
| 30 | referred to as <unzipped-dir> below.
|
|---|
| 31 | c) Unzip the FM/2 distribution into <unzipped-dir>
|
|---|
| 32 | d) Perform the following COPY commands
|
|---|
| 33 | COPY <trunk-dir>\cfgmgr.cmd <unzippped-dir>
|
|---|
| 34 | COPY <trunk-dir>\shdwmgr.cmd <unzippped-dir>
|
|---|
| 35 | COPY <trunk-dir>\utilsmgr.cmd <unzippped-dir>
|
|---|
| 36 | COPY <trunk-dir>\readme <unzippped-dir>
|
|---|
| 37 | COPY <trunk-dir>\debugtools\fm2dump.cmd <unzippped-dir>
|
|---|
| 38 | COPY <trunk-dir>\debugtools\fm2dump2.cmd <unzippped-dir>
|
|---|
| 39 | (NOTE: You may want to make a CMD file of these.)
|
|---|
| 40 | 5) You are now ready to create an FM/2 Warpin installation file: fm2.wpi
|
|---|
| 41 | NOTE: The following BLD_FM2_WPI* commands use default values. See the
|
|---|
| 42 | documentation below for each program to see what options are available.
|
|---|
| 43 | a) <Developers>: From <trunk-dir>, run NMAKE DIST
|
|---|
| 44 | b) <Others> : Run <trunk-dir>\warpin\BLD_FM2_WPIDIRS SRC=<unzipped-dir>
|
|---|
| 45 | <Others> : Run <trunk-dir>\warpin\BLD_FM2_WPI
|
|---|
| 46 | 6) To test your new WPI file:
|
|---|
| 47 | run <Warpin-installation-dir>\WARPIN <trunk-dir>\warpin\FM2.WPI
|
|---|
| 48 | 7) Periodically you should run SVN UPDATE from the <trunk-dir>. This will
|
|---|
| 49 | ensure you have the latest versions of the files. If SVN UPDATE shows
|
|---|
| 50 | that files have been added, deleted or updated, then
|
|---|
| 51 | <Developers>: From <trunk-dir>, run NMAKE ALL
|
|---|
| 52 | <Others> : repeat the COPY commands from 4.c.2.d
|
|---|
| 53 | <Others> : repeat the commands from 5.b
|
|---|
| 54 |
|
|---|
| 55 | If you want to help develop the Warpin install for FM/2:
|
|---|
| 56 | 1) Read the Warpin programmers guide. You will find an icon for it in your
|
|---|
| 57 | Warpin folder.
|
|---|
| 58 | 2) Read the Warpin script (*.WIS), enclosed in this archive, to see what
|
|---|
| 59 | the current beta script is trying to do.
|
|---|
| 60 | 3) Join the discussion in the Yahoo group named "fm2user" to find out what
|
|---|
| 61 | "needs to be done" and to coordinate your efforts with others.
|
|---|
| 62 | 4) Make changes. This might involve various combinations of
|
|---|
| 63 | a) changes to the script
|
|---|
| 64 | b) changes to the packages
|
|---|
| 65 | c) changes to the files and subdirectories which are packaged into the
|
|---|
| 66 | WPI file
|
|---|
| 67 | IMPORTANT: Whatever changes you make, be sure to read the information
|
|---|
| 68 | below regarding the BLD_FM2_WPIDIRS.TXT file and to read the
|
|---|
| 69 | BLD_FM2_WPIDIRS.TXT file itself. Unless you make the appropriate
|
|---|
| 70 | changes to this file, it is unlikely that your changed scripts or
|
|---|
| 71 | packages will be built or function correctly!
|
|---|
| 72 | 5) To test your new WPI FILE either open the WPI file through the WPS or run:
|
|---|
| 73 | <Warpin-installation-dir>\warpin <WPI-filename> from the command line.
|
|---|
| 74 |
|
|---|
| 75 | *****************************
|
|---|
| 76 |
|
|---|
| 77 | KEY FILES USED IN CREATING THE FM2 WARPIN INSTALLATION FILE: FM2.WPI
|
|---|
| 78 |
|
|---|
| 79 | BLD_FM2_WPIDIRS.TXT, a text file which contains information on
|
|---|
| 80 | - the files
|
|---|
| 81 | - which packages they are a part of
|
|---|
| 82 | - which they files can be found (to copy in preparation to
|
|---|
| 83 | building the WPI file
|
|---|
| 84 | - which directories into which they should be installed (relative
|
|---|
| 85 | to the FM/2 installation directory)
|
|---|
| 86 | - the packages, if any, which have no files
|
|---|
| 87 | By defining this information outside of the programs that use it, this
|
|---|
| 88 | file greatly simplifies future changes. This file, as distributed, is
|
|---|
| 89 | customized for the script file (*.WIS) that is also included in this
|
|---|
| 90 | archive.
|
|---|
| 91 |
|
|---|
| 92 | *** IMPORTANT ***: If you want to test other scripts and any of the
|
|---|
| 93 | package/file/directory information described above changes, then you
|
|---|
| 94 | should edit this text file to match. The file contains comments which
|
|---|
| 95 | should explain how to edit this file. (Forward questions to the author
|
|---|
| 96 | through the fm2user Yahoo group (preferred) or through direct email.
|
|---|
| 97 |
|
|---|
| 98 | BLD_FM2_WPIDIRS.CMD, a program which
|
|---|
| 99 | - Ensures the existence of the subdirectories which are needed for
|
|---|
| 100 | the creation of the Warpin WPI file.
|
|---|
| 101 | - Copies the files from the FM/2 build subtree (or from an unzipped
|
|---|
| 102 | binary FM/2 distribution) into the subdirectories created above.
|
|---|
| 103 | - Optional parameters:
|
|---|
| 104 | 1) By default BLD_FM2_WPIDIRS assumes it should retrieve files from
|
|---|
| 105 | a build subtree and that it resides in the Warpin subdirectory of
|
|---|
| 106 | that build subtree. One way to tell BLD_FM2_WPIDIRS to use an
|
|---|
| 107 | unzipped distribution of FM/2 instead of a build subtree is to
|
|---|
| 108 | use the "SRC=" parameter. For example:
|
|---|
| 109 | BLD_FM2_WPIDIRS SRC=C:\TMP\UNZIPPEDFM2
|
|---|
| 110 | 2) By default BLD_FM2_WPIDIRS.CMD reads BLD_FM2_WPIDIRS.TXT to obtain
|
|---|
| 111 | required information on packages, files and directories.
|
|---|
| 112 | You can have BLD_FM2_WPIDIRS.CMD read a different file by passing
|
|---|
| 113 | the name of the file as a parameter. For example:
|
|---|
| 114 | BLD_FM2_WPIDIRS <name-of-other-file-to-read>
|
|---|
| 115 | NOTE: If needed, both parameters may be used and the order
|
|---|
| 116 | they are specified is not important
|
|---|
| 117 |
|
|---|
| 118 | BLD_FM2_WPI.CMD, a program which
|
|---|
| 119 | - Automatically ensures that the Warpin WPI utility, WIC.EXE can be run
|
|---|
| 120 | - Builds the WPI file
|
|---|
| 121 | - Optional parameters:
|
|---|
| 122 | - BLD_FM2_WPI.CMD currently defaults to using a script file named
|
|---|
| 123 | fm2.wis and it creates a WPI file named fm2.wpi. If you wish to
|
|---|
| 124 | override these names, pass the preferred names on the command line.
|
|---|
| 125 | (Currently there is no support for filenames with spaces.) The WPI
|
|---|
| 126 | filename should be the first parameter and the WIS (script) file
|
|---|
| 127 | should be second. For example:
|
|---|
| 128 | BLD_FM2_WPI fm2-3-5-8.wpi my-test-script.wis
|
|---|
| 129 | - Customizing the operation of BLD_FM2_WPI:
|
|---|
| 130 | - Previously BLD_FM2_WPI.CMD used a crude method to archive previous WPI
|
|---|
| 131 | files before creating a new one. If the new WPI filename matched the
|
|---|
| 132 | name of an existing file, the existing file was renamed by appending
|
|---|
| 133 | a 5-digit number representing the number of seconds since midnight.
|
|---|
| 134 | If you want to re-enable this archiving, then open BLD_FM2_WPI.cmd in an
|
|---|
| 135 | editor. At or around line 41 is the following:
|
|---|
| 136 | archive_previous_WPI = 0
|
|---|
| 137 | Change the zero at the end to a one and save the file.
|
|---|
| 138 | - After creating the WPI file, BLD_FM2_WPI.CMD deletes the all files and
|
|---|
| 139 | directories so don't be surprised when you find them empty and don't put any
|
|---|
| 140 | files, including script files, in these subdirectories created by BLD_FM2_WPIDIRS.
|
|---|
| 141 | (This cleanup is done to help ensure that obsolete or extraneous files are
|
|---|
| 142 | not added to the next WPI file.) To disable this cleanup, find the line at
|
|---|
| 143 | or around line 42:
|
|---|
| 144 | delete_files_afterwards = 1
|
|---|
| 145 | Change the one at the end to a zero and save the file.
|
|---|
| 146 | - Possible problem and workaround:
|
|---|
| 147 | BLD_FM2_WPI.CMD uses SysQueryExtLibpath and SysSetExtLibpath. These functions have
|
|---|
| 148 | been available in both Classic REXX and Object REXX for many years. In the unlikely
|
|---|
| 149 | event that your REXX is too old, you will experience problems related to these
|
|---|
| 150 | functions and/or you will see errors like "The system cannot find the file WPIRTL".
|
|---|
| 151 | To work around this problem you can do any of the following:
|
|---|
| 152 | - Manually execute "SET ENDLIBPATH=<Warpin-installation-dir>"
|
|---|
| 153 | before running BLD_FM2_WPI.CMD. This is temporarily adds the Warpin
|
|---|
| 154 | directory to the LIBPATH. This will need to be done once for each
|
|---|
| 155 | session in which you want to build FM/2.
|
|---|
| 156 | - Run "<Warpin-installation-dir>\envwic" once per session in
|
|---|
| 157 | which you want to build the WPI file.
|
|---|
| 158 | - Edit your CONFIG.SYS file and add the Warpin directory to the
|
|---|
| 159 | LIBPATH and reboot. This permanently adds the directory to the LIBPATH.
|
|---|
| 160 | - Copy the WPITRL.DLL from the Warpin directory into the same
|
|---|
| 161 | directory as BLD_FM2_WPI.CMD
|
|---|
| 162 |
|
|---|
| 163 | FM2.WIS, the current beta Warpin script file
|
|---|
| 164 | - used as the default script file for BLD_FM2_WPI.CMD.
|
|---|
| 165 |
|
|---|