home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CLPMK.EXE
-
- a
-
- C L I P P E R M A K E U T I L I T Y
-
- Version 1.1
-
- Copyright (c) 1988 by Bill Tansill: ALL RIGHTS RESERVED
-
-
- This file describes the utility file CLPMK.EXE, version 1.0
- created by Bill Tansill on May 9,1988.
-
- This utility is distributed on an "AS-IS" basis. The author
- may not be held liable for any special, consequential,
- incidental or other damages or loss of income. No warrenty
- of merchantability or fitness for use is made, either express
- or implied.
-
- CLPMK is the copyrighted property of Bill Tansill. You are
- granted a limited license to use CLPMK, and to copy and
- distribute it, provided that you agree to the following terms:
-
- 1) No fee may be charged for such copying and distribution.
- 2) CLPMK may be distributed ONLY in its original, unmodified
- form.
- 3) This documentation file must accompany CLPMK.
- 4) This documentation file may not be altered.
-
- Any voluntary contributions for the use of this program will
- be appreciated, and should be sent to:
-
- Bill Tansill
- P.O. Box 3196
- Falls Church, Va. 22043
-
- A contribution of $15.00 is suggested.
-
- You may NOT use CLPMK in a Commercial or Governmental
- environment without making a contribution. An invoice is
- provided at the end of this document for your convenience.
-
- Those of you who are conscientious enough to make a contribution
- and to send your name and address will be recorded in a database
- and will be first in line for updates.
-
- To be honest, the number of people supporting this effort by
- registering will determine to a large extent the frequency of
- updates. If I can supplement my salary through the
- distribution of utility software such as CLPMK, then I can
- and will devote time to improving this product and developing
- others. If I get little or no support from those of you using
- CLPMK, then I will have to go get a part-time job somewhere.
- As you might expect, this will severly limit the amount of
- time I have left for this or any other projects. 'nuff said.
-
-
- How to use CLPMK
-
- The CLPMK syntax is very simple: type "CLPMK" and any valid
- CLIPPER switches (-m -l -q etc.) from the DOS command line.
- Be sure to separate each switche with a space.
-
- CLPMK will scan your subdirectory, and will call Clipper
- to compile any .PRG files with a later time/date
- stamp than the corresponding .OBJ file. In the case of .CLP
- files, each program listed in the .CLP file is tested against
- the time/date stamp of the .OBJ file created when the .CLP
- file was originally compiled. If any programs whose names
- appear in the .CLP file have a later time/date stamp, the
- contents of the .CLP file are recompiled.
-
- When Clipper is run from within CLPMK, no error messages will
- appear on the screen. Error messages, should there be any,
- are redirected to a file named "CLP.TXT". If CLPMK signals
- that a compile-time error has occurred, use your editor to
- read the "CLP.TXT" file. This file will contain all CLIPPER
- generated error listings.
-
- Some assumptions apply. First, CLPMK assumes that the
- CLIPPER directory is in your PATH list. The second
- assumption is that you are calling CLPMK from the directory
- containing the files that you wish to compile. Finally,
- CLPMK.EXE must be in a directory which is accessible from
- your PATH statement so that DOS can find it.
-
- Error Codes
-
- The DOS ERRORLEVEL is used to indicate errors detected by
- CLPMK. The meaning of the error codes is as follows:
-
- ERRORLEVEL == 1 Indicates that there are no files which need
- to be compiled.
-
- ERRORLEVEL == 2 Indicates that no source files were found.
-
- ERRORLEVEL == 3 Indicates that one or more errors occurred
- during compilation.
-
- ERRORLEVEL == 4 Indicates that the arguments in the CLIPPER
- argument list were run together (-s-q) and need to be
- respecified (-s -q).
-
- ERRORLEVEL == 5 Indicates that there were one or more
- unrecognized arguments specified (-z).
-
- CLPMK Limits
-
- CLPMK will work properly with either .CLP files, or stand
- alone programs. You may NOT have a mixture. That is,
- CLPMK will NOT work properly if you have some files in a
- .CLP file, and some which you wish to compile separately
- intermixed in the same subdirectory. See example 1 - 3
- for clarification.
-
- Except for generating error codes 4 and 5, CLPMK performs NO
- ERROR CHECKING. If you use CLPMK -cC:\FOO, CLIPPER will fail
- if the subdirectory FOO does not exist, but CLPMK will not
- warn you in advance. This was a conscious decision. Since
- CLIPPER provides error checking of its command line arguments,
- I felt that error checking on my part was redundant.
-
- CLPMK will only COMPILE files. It does NOT call the linker.
- It is best used in a batch file environment, where the batch
- file will call PLINK if all files were successfully compiled.
- See example 4 for details.
-
-
- Example 1 && wrong way to compile a .clp file
-
- file1.prg \
- file2.prg |
- file3.prg |
- file4.prg > individual files in c:\develop
- file5.prg |
- file6.prg |
- project.clp /
-
- the contents of project.clp are:
-
- file1.prg
- file2.prg
- file3.prg
- file4.prg
- file5.prg
-
- In this case, file6.prg will not be compiled, since the
- utility assumes that when it finds one or more .CLP files
- in a subdirectory that all .PRG files will be contained
- in the .CLP files. An object file (project.obj) will be
- produced, but it will NOT contain file6.prg.
-
- Example 2 && right way
-
- file1.prg \
- file2.prg |
- file3.prg |
- file4.prg > individual files in c:\develop
- file5.prg |
- file6.prg |
- project.clp /
-
- the contents of project.clp are:
-
- file1.prg
- file2.prg
- file3.prg
- file4.prg
- file5.prg
- file6.prg
-
- In this case, all files will be compiled, since each
- .PRG file is contained within a .CLP file. An object file
- (project.obj) will be produced containing the compilation
- of all .prg files.
-
- Example 3 && right way
-
- file1.prg \
- file2.prg |
- file3.prg > individual files in c:\develop
- file4.prg |
- file5.prg /
-
- no .CLP file exists
-
- In this case, all files will be compiled, since each
- .PRG file is a standalone file, and there are no .CLP
- files in the subdirectory. Five .obj files will be
- produced, one for each .prg file.
-
- Example 4 && Suggested batch file configuration
-
- echo off
- cls
- clpmk %1 %2 %3 %4 %5 %6 %7
- if ERRORLEVEL == 5 goto WRONG_ARGS
- if ERRORLEVEL == 4 goto BAD_ARGS
- if ERRORLEVEL == 3 goto BAD_FILES
- if ERRORLEVEL == 2 goto NO_SOURCE
- if ERRORLEVEL == 1 goto NO_NEW
- for %%1 in (*.lnk) do PLINK86 @%%1
- goto QUIT
- :NO_NEW
- echo There were no .PRG or .CLP files needing to be compiled.
- goto QUIT
- :NO_SOURCE
- echo There are no .PRG or .CLP file in this directory.
- goto QUIT
- :BAD_FILES
- echo There were one or more compilation errors. Examine
- echo CLP.TXT for details.
- goto QUIT
- :BAD_ARGS
- echo One or more arguments are run together.
- goto QUIT
- :WRONG_ARGS
- echo One or more arguments are unrecognized.
- :QUIT
- pause
- cls
-
-
- Known Incompatibilities
-
- This software depends on the DOS ERRORLEVEL. Any
- software that intercepts or resets ERRORLEVEL will conflict
- with CLPMK. At this time I am aware that FOXNET behaves in
- this manner. Consequently, you must NOT run FOXNET while
- using CLPMK.
-
- If anyone discovers any other problems, please mail me a
- description of the problem at the P.O. box number listed
- above.
-
- Trademarks
-
- Clipper is a trademark of Nantucket Corp.
-
- CLPMK.EXE
-
-
- INVOICE
-
- Make checks payable to:
-
- Bill Tansill Date: / /
- P.O. Box 3196
- Falls Church, Va. 22043
-
-
-
- Name, address, phone (Please type or print):
-
-
-
-
-
-
- Product Quantity Price Each Total
-
- CLPMK License Fee ________ @ $15.00 _______
-
-
- Total: _______
-
-