Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!cbosgd!ihnp4!qantel!intelca!oliveb!glacier!decwrl!pyramid!amiga!skipper!cbmvax!higgin From: higgin@cbmvax.cbm.UUCP (Paul Higginbottom) Newsgroups: net.micro.amiga Subject: Re: Keyword arguments in batch files Message-ID: <638@cbmvax.cbmvax.cbm.UUCP> Date: Sat, 16-Aug-86 11:34:26 EDT Article-I.D.: cbmvax.638 Posted: Sat Aug 16 11:34:26 1986 Date-Received: Tue, 19-Aug-86 04:27:53 EDT References: <636@cbmvax.cbmvax.cbm.UUCP> Reply-To: higgin@cbmvax.UUCP (Paul Higginbottom) Organization: Commodore Technology, West Chester, PA Lines: 148 In article <636@cbmvax.cbmvax.cbm.UUCP> carolyn@cbmvax.UUCP (Carolyn Scheppner) writes: ... intro to Keyword arguments for Amiga Batch Command files ... ... loads of script files follow describing how Carolyn does cc's and links with various configurations of the Lattice compiler ... very thoroughly documented, and useful for Lattice users, no doubt, I might add. Sample... >. =================================================================== >. Compile (Link) Single C Source File C. Scheppner v 1.1 >. =================================================================== > >if eq "usage" > echo " " > echo "USAGE: ex(ecute) cc filename [string=value]... [flag=value]..." > echo " " > . > . > echo "Set other arguments to desired string" > echo " " > skip done >endif > >. ===== Directory assignments ===== >assign T: :T >assign LIB: df0:lib > >. ===== Skip to link if linkonly=1 ===== >if eq "1" > skip link >endif > >. ===== Abort if source file not found ===== >if not exists .c >echo "File .c does not exist." >skip abort >endif > >. ===== Save source to temp disk file if dsave=1 ===== >if eq "1" > if exists df1:t > echo "Copying .c to df1:t/lastcc.c" > copy .c to df1:t/lastcc.c > endif >endif > >. ===== If old .q or .o files exist, delete them ===== >if exists .q > delete .q >endif >if exists .o > delete .o >endif > >. ===== First compiler pass ===== >echo " " >lc1 -idf1:include/ > >. ===== Check for failure ===== >if not exists .q > echo " " > echo "LC1 failed. ABORTING CC ..." >skip abort >endif > >. ===== Second compiler pass ===== >echo " " >lc2 > >. ===== Check for failure ===== >if not exists .o > echo " " > echo "LC2 failed. ABORTING CC ..." >skip abort >endif > >. ===== Atomize object if atomize=1 ===== >if eq "1" > echo " " > echo "Atomizing .o ..." > rename .o .preAtom > Atom .preAtom .o >endif > >. ===== Save object to temp disk file if dsave=1, nolink=1 ===== >if eq "1" > if eq "1" > if exists df1:t > echo "Copying .o to df1:t/lastcc.o" > copy .o to df1:t/lastcc.o > endif > endif >endif > >. ===== Alink if nolink=0 ===== >lab link >if eq "0" > echo " " > alink ,.o, TO LIBRARY >endif > >. ===== Save executable to temp disk file if dsave=1 ===== >if eq "1" > if exists df1:t > echo " " > echo "Copying executable to df1:t/lastcc.exe..." > copy to df1:t/lastcc.exe > endif >endif > >. ===== Successful CC ===== >echo " " >echo "CC DONE" >skip done > >. ===== CC Failed ===== >lab abort >echo " " >echo "CC FAILED" > >lab done > ... and so on, and so on for at least another 50 lines... >-- >=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= >Carolyn Scheppner -- CBM >>Amiga Technical Support<< > UUCP ...{allegra,caip,ihnp4,seismo}!cbmvax!carolyn > PHONE 215-431-9180 >=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= This has nothing to do with Carolyn's EXCELLENT description of how to really utilize script files on the Amiga, but, but, but.... Doesn't this remind you of the difference between VMS and UNIX? I personally accomplish most of the above by typing in: make On my Aztec system. Lightheartedly yours, Paul. Disclaimer: I do not work for Commodore, and the opinions above are my own.