documented environment variables, changed EM_DIR into ACKDIR
authorceriel <none@none>
Mon, 17 Jul 1989 16:19:10 +0000 (16:19 +0000)
committerceriel <none@none>
Mon, 17 Jul 1989 16:19:10 +0000 (16:19 +0000)
util/ack/ack.1.X
util/ack/main.c

index b1da3cd..1e8a126 100644 (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)
index 910556d..d52e9b0 100644 (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)) ;