$! VBUILD.COM $! $! Build Decus C on VMS $! $! The default directory is [-.command] $! $! First check that externally defined commands/logicals are present. $! $ ok = 1 $ if "''f$logical("C")'" .nes. "" then goto ok1 $ write sys$error "The C: logical device must be defined" $ ok = 0 $ ok1: if "''f$logical("BIN")'" .nes. "" then goto ok2 $ write sys$error "The BIN: logical device must be defined" $ ok = 0 $ ok2: if "''XCC'" .nes. "" then goto ok3 $ write sys$error "The XCC command must be defined" $ ok = 0 $ ok3: if "''XAS'" .nes. "" then goto ok4 $ write sys$error "The XAS command must be defined" $ ok = 0 $ ok4: if ok then goto ok5 $ write sys$error "Fatal error, build cannot proceed" $ goto finis $ ok5: $! $ on error then exit $ copy/log [-.command]*.h c: ! Include files $ copy/log [-.command]cmacs.mac c: ! User macro library $ @[-.comp]vmakcc ! Compiler $ @[-.comp]vmakas ! Assembler $ @[-.otsio]vmaklb ! Run-time library $ purge c: ! Cleanup after ourselves $ set default [-.tools] ! Locate us into tools $ @vxtool ! Compile the tools $ purge bin: $ set default [-.lex] ! Now, locate us into lex $ @vxlexl ! Compile lex library $ @vxlex ! And compile lex itself $ purge c: ! Cleanup $ purge bin: ! Cleanup $ set default [-.command] ! Back to command $ @vgtdoc ! Documentation proper $ @toldoc ! Tools documentation $ set default [-.useful] ! Now, do the useful library $ @vxmkcu ! Compile the library $ @vuldoc ! And the documentation $ purge c: ! Cleanup $ set default [-.command] ! Home again $! $! Compiler and library are built $! $ finis: