Location of emboss.default
Johann Visagie
johann at egenetics.com
Thu Aug 10 08:26:08 UTC 2000
I'm attempting to streamline the FreeBSD port of EMBOSS a little for the next
update. (The deluge of new versions is keeping me on my toes. :-)
One thing I'm looking at is placing emboss.default in the more FreeBSD-ish
location of /usr/local/etc. I'm currently pre-applying the following patch
as part of the port installatoin process. Would this be sufficient? (Note,
it shouldn't invalidate any of the other possible locations - it checks for
/usr/local/etc after the others.)
--- ajax/ajnam.c.orig Wed Aug 2 10:18:59 2000
+++ ajax/ajnam.c Thu Aug 10 10:06:20 2000
@@ -982,6 +982,13 @@
prefixRootFile = fopen (ajStrStr(namRootStr), "r");
}
+ /* look for $(PREFIX)_ROOT/../emboss.default */
+
+ if (!prefixRootFile) {
+ ajFmtPrintS (&namRootStr, "%s/etc/%s.default", prefixRoot, prefix);
+ prefixRootFile = fopen (ajStrStr(namRootStr), "r");
+ }
+
if (namFileOrig)
(void) ajStrAppC (&namFileOrig, ", ");
(void) ajStrApp (&namFileOrig, namRootStr);
-- V
More information about the EMBOSS
mailing list