head     1.4;
branch   ;
access   ;
symbols  ;
locks    eric:1.4; strict;
comment  @# @;


1.4
date     93.08.12.15.54.13;  author peter;  state Exp;
branches ;
next     1.3;

1.3
date     93.08.12.15.11.28;  author peter;  state Exp;
branches ;
next     1.2;

1.2
date     92.09.04.11.31.31;  author peter;  state Exp;
branches ;
next     1.1;

1.1
date     92.09.04.10.45.23;  author peter;  state Exp;
branches ;
next     ;


desc
@Invokes fixheader for each include file.
@


1.4
log
@Exempt exec_lib.i from assembly test 
@
text
@.key version/a,subsystem/a,incdirs/a
.bra {
.ket }

set olddir `cd`
set year `execute ExtractYear {subsystem}`
set revision `type {subsystem}_rev.rev`

makedir V{version}:disk/support.temp/include

foreach incdir in {incdirs}
echo "Processing include directory $incdir..."
cd V{version}:include/$incdir
makedir V{version}:disk/support.temp/include/$incdir
foreach incfile in #? files
failat 21
echo "    Processing include file $incdir/$incfile..."
fixheader $incfile -o V{version}:disk/support.temp/include/$incdir/$incfile "{version}.$revision" -y $year -t
; exec_lib.i is exempted from the assembly test, since it's designed to
; not be a stand-alone file (user must supply an appropriate FUNCDEF macro)
if $incfile ne "exec_lib.i"
if `echo $incfile len 2` eq ".h"
echo "#include *"V{version}:disk/support.temp/include/$incdir/$incfile*"" >ram:testinclude.c
sc ram:testinclude.c IGNORE 105 NOVERSION INCLUDEDIR=V{version}:include
if $rc GT 0
run >NIL: requestchoice >NIL: "Include file error" "$incdir/$incfile does not compile.*N*N(Script is continuing since it's a pain to stop it.)" "OK"
endif
delete ram:testinclude.o quiet
else
echo "	include *"V{version}:disk/support.temp/include/$incdir/$incfile*"" >ram:testinclude.asm
hx68 from ram:testinclude.asm to nil: INCDIR V{version}:include quiet
if $rc GT 0
run >NIL: requestchoice >NIL: "Include file error" "$incdir/$incfile does not assemble.*N*N(Script is continuing since it's a pain to stop it.)" "OK"
endif
endif
endif
end
end

cd $olddir
unset olddir
unset revision
unset year
@


1.3
log
@Now test compiles/assembles each include file to assure validity 
@
text
@d19 3
d34 1
@


1.2
log
@Need to use explicit execute, and have case of ExtractYear match.
@
text
@d16 1
d19 14
@


1.1
log
@Initial revision
@
text
@d6 1
a6 1
set year `extractyear {subsystem}`
@
