documented environment variables, changed EM_DIR into ACKDIR

This commit is contained in:
ceriel 1989-07-17 16:19:10 +00:00
parent 4c92b4bf08
commit 5ae08cd2bf
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)) ;