home *** CD-ROM | disk | FTP | other *** search
- CLrun - Clipper developement system Another Beggarware product
-
- For anyone who has been developing complex, multi-prg systems, it is
- evident that much time can be wasted if clipper is invoked using the simple:
-
- 'CLIPPER <filename>'
-
- approach. This method will compile the <filename> given, plus all .prgs
- referenced within this program, which is especially wasteful when only one
- program was actually changed.
-
- Of course, each .prg can be compiled separately (with the -l option) into
- a separate .obj file, which is linked with all others at plink-time. This
- requires a .lnk file with all .obj files needed and reduces developement
- time by a factor of whatever. However, and this is where CLrun is handy,
- when many .prgs have been modified and compile time rolls around, how much
- time have YOU wasted trying to remember which files were modified?
-
- One need only look at the date-time stamp for the .prg to find all modified
- .prgs, given a date-time prior to all revisions. This is all CLrun does,
- basically, as shown below:
-
- a) CLrun is executed
- b) generates a .dbf and copies all .prg files in the directory to it
- c) restores a previosly stored date-time of its last use
- d) file by file comparison of date-time stamps for compile requirements
- e) compiles the files which were changed
- f) stores new date-time stamp for next run
- g) exits
-
- NOTES: All .prgs in the directory, and only the default directory are
- scanned for changes, therefore a single directory should be used
- (or change the source code for CLrun).
-
- A batch can be used to invoke CLrun and subsequently plink86 to
- complete the process.
-
- The source code and support .obj files are included herein and
- require compiling and plinking themselves. PCL.bat is included
- to compile and link CLrun. CL.bat is included as a sample batch
- to invoke CLrun and PLINK86 when needed (this sample uses SETRAM
- as the ram disk, this must be changed or removed if other than
- SETRAM is used - this speeds up the compiler load-time, but can
- be removed if not enough ram is available)
-
- Below are the files included and brief description of each:
-
- Name Description
- ========= =========================
- CL.BAT sample batch routine to invoke CLrun and plink86
- CLRUN.LNK .lnk file used by PCL.bat to plink86 CLrun
- CLRUN.OBJ .obj CLrun ready to link, or
- CLRUN.PRG .prg source code if revisions are needed
- EXTA.OBJ assembler extension for CLrun
- EXTC.OBJ c extension for CLrun
- PCL.BAT batch to compile and plink CLrun
-
- Finally, this setup was the result of a need I had, and hopefully will be
- handy for others in this predicament. Don't send any money, I never do.
-
- brad birth