diff options
author | Bill Fumerola <billf@FreeBSD.org> | 1998-12-22 22:59:16 +0000 |
---|---|---|
committer | Bill Fumerola <billf@FreeBSD.org> | 1998-12-22 22:59:16 +0000 |
commit | 5abcacf74e02e671f786a7ba3eb40e8ed9045618 (patch) | |
tree | cb63f025ff6ea0115b584bedb9cd86df9d44d76c /www/swish-e/files | |
parent | Upgrade to 3.22.11-beta. (diff) |
Initial Import of swish-e
SWISH-Enhanced is a fast, powerful, flexible, and easy to use system for
indexing collections of Web pages or other text files. Key features include
the ability to limit searches to certain HTML tags (META, TITLE, comments,
etc.). The SWISH-E software is free, and includes a package of Perl programs
that enable anyone who is authorized to create and maintain their own indexes
(AutoSwish). SWISH-E is an enhanced version of SWISH, which was originally
written by Kevin Hughes and modified and released with his permission.
http://sunsite.berkeley.edu/SWISH-E/
PR: ports/5821
Submitted By: Daniel O'Connor
Notes
Notes:
svn path=/head/; revision=15494
Diffstat (limited to 'www/swish-e/files')
-rw-r--r-- | www/swish-e/files/patch-aa | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/www/swish-e/files/patch-aa b/www/swish-e/files/patch-aa new file mode 100644 index 000000000000..0d59a382d762 --- /dev/null +++ b/www/swish-e/files/patch-aa @@ -0,0 +1,38 @@ +--- fs.c.old Fri Nov 27 13:30:13 1998 ++++ fs.c Fri Nov 27 13:32:19 1998 +@@ -539,23 +539,28 @@ + int ishtml(filename) + char *filename; + { +- char *c, suffix[MAXSUFFIXLEN]; ++ char *c, *d; + ++ d = (char *) strrchr(filename, '/'); + c = (char *) strrchr(filename, '.'); + ++ /* make sure the . is part of the filename */ ++ if (d != NULL && c < d) { ++ return 0; ++ } ++ + if (c == NULL) + return 0; +- strcpy(suffix, c + 1); +- if (suffix[0] == '\0') ++ if (c++ == '\0') + return 0; + +- if (!strncmp(suffix, "htm", 3)) ++ if (!strncmp(c, "htm", 3)) + return 1; +- else if (!strncmp(suffix, "HTM", 3)) ++ else if (!strncmp(c, "HTM", 3)) + return 1; +- else if (!strncmp(suffix, "shtml", 5)) ++ else if (!strncmp(c, "shtml", 5)) + return 1; +- else if (!strncmp(suffix, "SHTML", 5)) ++ else if (!strncmp(c, "SHTML", 5)) + return 1; + return 0; + } |