Consultor Eletrônico



Kbase 17951: Code example - compiling procedures from op sys command line
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/19/1998
Code example - compiling procedures from op sys command line

Code given in this knowledgebase will compile Progress procedures from
the operating system command line. This code was previously included
in the Version 6 Librarian and is offered here for the informational
needs of users on later versions.


Code for use in DOS:
--------------------


echo off
rem compile.bat - DOS command-line compiler for PROGRESS
rem assumes all startup parameters in "compile.pf" file
echo OUTPUT TO compile.log NO-ECHO. >compile.p
for %%i in (%1 %2 %3 %4 %5) do echo COMPILE %%i SAVE ATTR. >>compile.p

bpro -pf compile.pf -p compile.p


Code for use in UNIX:
---------------------

#!/bin/sh
# compile.sh - UNIX command-line compiler for PROGRESS
# assumes all startup parameters in "compile.pf" file
for i in "$@"
do
echo COMPILE $i SAVE ATTR.
done >compile.p
bpro -pf compile.pf -p compile.p >compile.log