Commit bc9cc286 by Richard Kenner

Construct options.h and specs.h to #include all

"*/lang-{options|specs}.h" files found.

From-SVN: r9686
parent b10ed555
...@@ -6,6 +6,7 @@ $flnm = f$enviroment("PROCEDURE") ! get current procedure name ...@@ -6,6 +6,7 @@ $flnm = f$enviroment("PROCEDURE") ! get current procedure name
$set default 'f$parse(flnm,,,"DEVICE")''f$parse(flnm,,,"DIRECTORY")' $set default 'f$parse(flnm,,,"DEVICE")''f$parse(flnm,,,"DIRECTORY")'
$ ! $ !
$set symbol/scope=(nolocal,noglobal) $set symbol/scope=(nolocal,noglobal)
$if f$trnlnm("IFILE$").nes."" then close/noLog ifile$
$ ! $ !
$ echo = "write sys$output" $ echo = "write sys$output"
$ ! $ !
...@@ -61,6 +62,10 @@ $ if f$search("config-vax.h") .nes. "" then delete config-vax.h;* ...@@ -61,6 +62,10 @@ $ if f$search("config-vax.h") .nes. "" then delete config-vax.h;*
$ copy [.config.vax]vax.h []config-vax.h $ copy [.config.vax]vax.h []config-vax.h
$ echo "Linked `config-vax.h' to `[.config.vax]vax.h' for `tm.h'." $ echo "Linked `config-vax.h' to `[.config.vax]vax.h' for `tm.h'."
$ ! $ !
$ call make_lang_incl "options.h"
$ !
$ call make_lang_incl "specs.h"
$ !
$ if f$search("md.") .nes. "" then delete md..* $ if f$search("md.") .nes. "" then delete md..*
$ copy [.config.vax]vax.md []md. $ copy [.config.vax]vax.md []md.
$ echo "Linked `md' to `[.config.vax]vax.md'. $ echo "Linked `md' to `[.config.vax]vax.md'.
...@@ -396,8 +401,32 @@ $! ...@@ -396,8 +401,32 @@ $!
$! $!
$! $!
$ if f$search("config.status") .nes. "" then delete config.status.* $ if f$search("config.status") .nes. "" then delete config.status.*
$ open/write file config.status $ create config.status
$ write file "Links are now set up for use with a vax running VMS." Links are now set up for use with a vax running VMS.
$ close file
$ type config.status $ type config.status
$ echo "" $ echo ""
$!
$ exit
$
$!
$! Constuct a header file based on subdirectory contents
$!
$make_lang_incl: subroutine
$ if f$search(p1).nes."" then delete 'p1';*
$ create 'p1' !empty file with ordinary text-file attributes
$ open/Append ifile$ 'p1'
$ write ifile$ "/* ''p1' */"
$ hfile = f$search("[]''p1'")
$ topdir = f$parse(hfile,,,"DIRECTORY") - "]"
$lang_incl_loop:
$ hfile = f$search("[.*]lang-''p1'")
$ if hfile.eqs."" then goto lang_incl_done
$ dir = f$parse(hfile,,,"DIRECTORY") - "]"
$! convert absolute path to relative one, yielding "[.subdir]"
$ dir = "[" + f$edit(dir - topdir,"LOWERCASE") + "]"
$ write ifile$ "#include ""''dir'lang-''p1'"""
$ goto lang_incl_loop
$lang_incl_done:
$ close ifile$
$ echo "Created `''p1''."
$ endsubroutine !make_lang_incl
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment