| 1 |
$ ! @(#)maketest.com 19.1 (ESO-IPG) 02/25/03 13:56:11 |
| 2 |
$ ver=f$verify(0) |
| 3 |
$ set verify |
| 4 |
$!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| 5 |
$!.IDENTIFICATION maketest.COM |
| 6 |
$!.LANGUAGE DCL |
| 7 |
$!.AUTHOR Francois Ochsenbein ESO-IPG |
| 8 |
$!.PURPOSE Compile test programs related to OSLIB |
| 9 |
$!.VERSION 3.0 06-Jul-1988 |
| 10 |
$!.P1 D for debug version, S for Shareable Version |
| 11 |
$!----------------------------------------------------------------------- |
| 12 |
$ set nover |
| 13 |
$ ON CONTROL_Y then goto FIN |
| 14 |
$ ON CONTROL_C then goto FIN |
| 15 |
$! |
| 16 |
$! Definition of Symbols |
| 17 |
$! |
| 18 |
$ OP = "/INCL=[---.incl]" ! Compiler options |
| 19 |
$ IF (P1.eqs."D") then OP = OP + "/deb/noop" |
| 20 |
$ FLIB = "[--]OSLIB" |
| 21 |
$ IF (p1.eqs."D") then FLIB = "[--]OSDEB" |
| 22 |
$ OPL = "" |
| 23 |
$ IF (P1.eqs."D") then OPL = "/deb" |
| 24 |
$ OPB = "/lib" |
| 25 |
$ IF (P1.eqs."S") then OPB = "/opt" |
| 26 |
$! |
| 27 |
$! |
| 28 |
$!======================================================================== |
| 29 |
$! List of Files to Process |
| 30 |
$!======================================================================== |
| 31 |
$! |
| 32 |
$! List of Programs |
| 33 |
$! |
| 34 |
$ PGMS = "osttest,osatest,osdtest,osftest,oshtest,osrtest,osutest" |
| 35 |
$! |
| 36 |
$!============================================================= |
| 37 |
$! Compile Test Programs |
| 38 |
$!============================================================= |
| 39 |
$! |
| 40 |
$ I = 0 |
| 41 |
$PGM_LOOP: |
| 42 |
$ ver=f$verify(0) |
| 43 |
$ set verify |
| 44 |
$ LPGM = F$LENGTH(PGMS) |
| 45 |
$ if (I .ge. LPGM) then goto PGM_END |
| 46 |
$ LIST = F$EXTRACT(I, LPGM-I, PGMS) |
| 47 |
$ comma = F$LOCATE(",",LIST) |
| 48 |
$ source = F$EXTRACT(0,comma,LIST) |
| 49 |
$ I = I + comma + 1 |
| 50 |
$ tojb = "0" |
| 51 |
$ tsource = "9" |
| 52 |
$ if (F$SEARCH(source+".obj") .eqs. "") then goto PGM_COMPILE |
| 53 |
$ tsource = F$CVTIME(F$FILE_ATTRIBUTES(source+".C","CDT")) |
| 54 |
$ tobj = F$CVTIME(F$FILE_ATTRIBUTES(source+".OBJ","CDT")) |
| 55 |
$ if (tobj .gts. tsource) then goto PGM_LINK |
| 56 |
$PGM_COMPILE: |
| 57 |
$ set verify |
| 58 |
$ cc'OP' 'source'.C |
| 59 |
$PGM_LINK: |
| 60 |
$ set verify |
| 61 |
$ LIN'OPL' 'source','FLIB''OPB' |
| 62 |
$ ver = f$verify(ver) |
| 63 |
$goto PGM_LOOP |
| 64 |
$! |
| 65 |
$PGM_END: |
| 66 |
$ I = 0 |
| 67 |
$!------------------------------------------------------------- |
| 68 |
$FIN: |
| 69 |
$ ver = f$verify(ver) |
| 70 |
$ EXIT |