home *** CD-ROM | disk | FTP | other *** search
- $!
- $! This command file sets up the necessary logical names for
- $! Bison.
- $!
- $! Find the directory spec. for the install procedure
- $!
- $ Procedure:='f$environment("PROCEDURE")'
- $ Device:='f$parse(Procedure,,,"DEVICE","NO_CONCEAL")'
- $ Directory:='f$parse(Procedure,,,"DIRECTORY","NO_CONCEAL")'
- $ Path:="''Device'''Directory'"
- $!
- $! Check for "rooted" directory specs
- $!
- $ l = 'f$length(Path)'
- $ tmp = 'f$locate(".][",Path)'
- $ if 'tmp' .ne. 'l' then goto 10$
- $ tmp = 'f$locate(".><",Path)'
- $ if 'tmp' .ne. 'l' then goto 10$
- $ goto 100$
- $!
- $! Eliminate rooted directory specs
- $!
- $ 10$:
- $ if "''f$extract(tmp,255,Path)'" .eqs. ".][000000]" then goto 20$
- $ if "''f$extract(tmp,255,Path)'" .eqs. ".><000000>" then goto 20$
- $ l = tmp + 3
- $ Path:="''f$extract(0,tmp,Path)'.''f$extract(l,255,Path)'"
- $ goto 100$
- $ 20$:
- $ l = tmp + 1
- $ Path:="''f$extract(0,tmp,Path)'''f$extract(l,1,Path)'"
- $ 100$:
- $!
- $! Calculate the prefix and suffix (used in generating desired paths)
- $!
- $ l = 'f$length(Path)' - 1
- $ Prefix:='f$Extract(0,l,Path)'
- $ Suffix:='f$extract(l,1,Path)'
- $!
- $ Bison_Directory:="''Prefix'.''Suffix'"
- $!
- $ system = "/job"
- $ if f$priv("SYSNAM").eqs."TRUE" then system = "/system"
- $ if f$priv("SYSPRV").eqs."TRUE" then system = "/system"
- $ assign'system' 'Bison_Directory' GNU_BISON/tran=(conc)
-