$NetBSD: patch-ab,v 1.1 1999/01/05 21:37:55 frueauf Exp $ --- w_help.c-orig Tue Jun 16 18:06:43 1998 +++ w_help.c Tue Jan 5 21:41:46 1999 @@ -33,13 +33,13 @@ char filename[PATH_MAX]; /* first check if at least the index file is installed */ - sprintf(filename, "%s/html/index.html", XFIGLIBDIR); + sprintf(filename, "%s/html/index.html", XFIGDOCDIR); #ifdef I18N if (appres.international && getenv("LANG")) { - /* check localized file ($XFIGLIBDIR/html/$LANG/index.html) first */ - sprintf(filename, "%s/html/%s/index.html", XFIGLIBDIR, getenv("LANG")); + /* check localized file ($XFIGDOCDIR/html/$LANG/index.html) first */ + sprintf(filename, "%s/html/%s/index.html", XFIGDOCDIR, getenv("LANG")); if (!check_docfile(filename)) - sprintf(filename, "%s/html/index.html", XFIGLIBDIR); + sprintf(filename, "%s/html/index.html", XFIGDOCDIR); } #endif if (!check_docfile(filename)) @@ -63,13 +63,13 @@ int pid; /* first check if the file is installed */ - sprintf(cmd,"%s/xfig-howto.pdf",XFIGLIBDIR); + sprintf(cmd,"%s/xfig-howto.pdf",XFIGDOCDIR); if (!check_docfile(cmd)) return; pid = fork(); if (pid == 0) { /* child process launches pdf viewer */ - sprintf(cmd,"%s %s/xfig-howto.pdf &",appres.pdf_viewer,XFIGLIBDIR); + sprintf(cmd,"%s %s/xfig-howto.pdf &",appres.pdf_viewer,XFIGDOCDIR); system(cmd); exit(0); } @@ -84,14 +84,14 @@ int pid; /* first check if the file is installed */ - sprintf(cmd,"%s/xfig.pdf",XFIGLIBDIR); + sprintf(cmd,"%s/xfig.pdf",XFIGDOCDIR); if (!check_docfile(cmd)) return; put_msg("Launching %s for man pages",appres.pdf_viewer); pid = fork(); if (pid == 0) { /* child process launches pdf viewer */ - sprintf(cmd,"%s %s/xfig.pdf &",appres.pdf_viewer,XFIGLIBDIR); + sprintf(cmd,"%s %s/xfig.pdf &",appres.pdf_viewer,XFIGDOCDIR); system(cmd); exit(0); }