Browse Source

documented environment variables, changed EM_DIR into ACKDIR

ceriel 35 years ago
parent
commit
3e357f311f
2 changed files with 11 additions and 1 deletions
  1. 10 0
      util/ack/ack.1.X
  2. 1 1
      util/ack/main.c

+ 10 - 0
util/ack/ack.1.X

@@ -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)

+ 1 - 1
util/ack/main.c

@@ -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)) ;