documented environment variables, changed EM_DIR into ACKDIR

This commit is contained in:
ceriel 1989-07-17 16:19:10 +00:00
parent 228fe4b4d0
commit 3e357f311f
2 changed files with 11 additions and 1 deletions

View file

@ -377,6 +377,16 @@ input:name:output:description
\&.o:cv:a.out:Conversion from Ack object to machine object
.TE
.in -2
.SH "ENVIRONMENT VARIABLES"
.IP ACKDIR
If set, this environment variable overrides ack's idea of its home
directory.
.IP ACKM
If set, this environment variable overrides ack's idea of the default
machine it compiles for.
.IP ACKFE
If set, this environment variable tells ack where to get the front-end
description file.
.SH "SEE ALSO"
.PD 0
em_opt(6), em_ass(6), em_cg(6), ack.out(5)

View file

@ -123,7 +123,7 @@ varinit() {
register char *envstr ;
extern char em_dir[];
if ( envstr=getenv("EM_DIR") ) {
if ( envstr=getenv("ACKDIR") ) {
setsvar(keeps(HOME),keeps(envstr)) ;
} else {
setsvar(keeps(HOME),keeps(em_dir)) ;