Adapted to search for description files in either
authorceriel <none@none>
Fri, 13 Feb 1987 13:39:30 +0000 (13:39 +0000)
committerceriel <none@none>
Fri, 13 Feb 1987 13:39:30 +0000 (13:39 +0000)
~em/lib/descr/<file> or ~em/lib/<file>/descr

util/ack/mktables.c

index 9adb9f4..bbdaed2 100644 (file)
@@ -68,8 +68,15 @@ stop(filled) {
 }
 
 FILE *do_open(file) char *file ; {
+       FILE *fd;
+
        strcpy(tail,file) ;
-       return fopen(dname,"r") ;
+       strcat(tail,"/");
+       strcat(tail,"descr");
+       if ((fd = fopen(dname,"r")) != NULL) return fd;
+       strcpy(tail,"descr/");
+       strcat(tail,file);
+       return fopen(dname,"r");
 }
 
 readm() {