aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
2012-03-13Bugfixes.HEADmasterSergey Poznyakoff2
* src/swis.in: Set default backend to "store". * src/word-split.c: Fix offset counting.
2012-03-12Mode db.mysql to backend/mysqlSergey Poznyakoff3
2012-03-12Minor fix.Sergey Poznyakoff2
* Makefile.am (SUBDIRS): Add backend (noinst_HEADERS): Add gram.h
2012-03-12Initial implementation of the search utility.Sergey Poznyakoff13
* include/swis/Makefile.am (pkginclude_HEADERS): Add query.h * include/swis/backend.h (swis_backend_module) <swis_search>: New member. * include/swis/query.h: New file. * src/.gitignore: Update. * src/Makefile.am: Install auxiliary utils to pkglibexec. Move dynload.c to libswisapp.a Build search utility. * src/gram.y: New file. * src/parse.l: New file. * src/search-cfg.def: New file. * src/search-cli.opt: New file. * src/search.c: New file. * src/search.h: New file. * src/store-cli.opt: Rename the utility to 'store' * src/swis.h (swis_backend_load): New proto.
2012-03-11Rewrite backend support using loadable modules.Sergey Poznyakoff31
* configure.ac: Require libtool. (GRECS_SETUP): Configure as a shared convenience library. (AC_CONFIG_FILES): Build lib and backend/mysql * Makefile.am (SUBDIRS): Add libltdl, include and lib. * backend/Makefile.am: New file. * backend/mysql/Makefile.am: New file. * backend/mysql/mysql.c: New file. * include/Makefile.am: New file. * include/swis/Makefile.am: New file. * include/swis/backend.h: New file. * include/swis/utf8.h: New file. * grecs: Upgrade. * src/utf8.c: Move to lib * lib/Makefile.am: New lile. * src/.gitignore: Update. * src/Makefile.am: Remove mysql_backend, build swis-store instead. * src/badword.c: Reflect namespace changes. * src/utf8io.c: Likewise. * src/word-split.c: Likewise. * src/config.c (config_init): Set grecs_print_diag_fun. * src/config.m4: New statements: module-load-path and prepend-load-path * src/html-strip.l (main): Bugfix: use index instead of optind. * src/mysql-backend-cfg.def: Remove. * src/mysql-backend.c: Remove. * src/store-cfg.def: New file. * src/mysql-backend-cli.opt: Remove. * src/store-cli.opt: New file. * src/store.c: New file. * src/dynload.c: New file. * src/swis.conf: Add prepend-load-path statement. * src/swis.h (prepend_load_path,module_load_path): New externs. * src/swis.in: Use swis-store as backend. * src/word-split-cfg.def: Bugfix.
2012-01-07Use set_program_name instead of direct assignment to program_name.Sergey Poznyakoff4
2012-01-07getpass-gnu module no longer needed.Sergey Poznyakoff2
* gnulib.modules: Remove getpass-gnu * src/mysql-backend.c: Don't include "getpass.h"
2012-01-07mysql-backend: Move table definition from options to configuration.Sergey Poznyakoff3
* src/mysql-backend-cfg.def: New keyword "define-table" * src/mysql-backend-cli.opt: Remove table definition options. * src/mysql-backend.c (find_column_id): Take ID length as 3rd argument. (read_table_info): Remove.
2012-01-07Minor changes.Sergey Poznyakoff2
* src/swis.in: Read basic configuration before running the command. * src/swis.conf: Add `backend' statement.
2012-01-05Add an auxiliary tool for configuration file parsing.Sergey Poznyakoff9
* src/.gitignore: Update. * src/Makefile.am (libexec_PROGRAMS): Remove confval, build cfgtool instead. * src/cfgtool-cfg.def: New file. * src/cfgtool-cli.opt: New file. * src/cfgtool.c: New file. * src/config.m4 (file-pattern, find-options) (backend): New keywords. * src/confval.c: Remove. * src/swis.conf: Update. * src/swis.in (dirscan): Use cfgtool to test the configuration and retrieve variables from it.
2012-01-04Switch to Grecs configuration system.Sergey Poznyakoff20
* grecs: Upgrade * configure.ac: Raise AC_PREREQ * gnulib.modules (version-etc): Remove. * src/.gitignore: Update. * src/Makefile.am (libexec_PROGRAMS): Add confval. (bin_PROGRAMS): Rename to bin_SCRIPTS (EXTRA_DIST): Add config.m4, html-strip-cfg.def, word-split-cfg.def and mysql-backend-cfg.def. (CLEANFILES): Add swis (html_strip_SOURCES,BUILT_SOURCES): Add html-strip-cfg.h (word_split_SOURCES,BUILT_SOURCES): Add word-split-cfg.h (mysql_backend_SOURCES,BUILT_SOURCES): Add mysql-backend-cfg.h (libswis_a_SOURCES): Add config.c, remove version.c * src/config.c: New file. * src/config.m4: New file. * src/confval.c: New file. * src/version.c: Remove. * src/html-strip-cfg.def: New file. * src/html-strip-cli.opt: Add config-related options. * src/mysql-backend-cli.opt: Likewise. * src/word-split-cli.opt: Likewise. * src/html-strip.l: Parse configuration file. * src/mysql-backend.c: Likewise. * src/word-split.c: Likewise. * src/mysql-backend-cfg.def: New file. * src/word-split-cfg.def: New file. * src/swis.h (swis_version): Remove proto. (config_init,config_finish,config_help): New protos. (assert_string_arg): New proto. (conffile, lint_mode, preprocess_only): New externs. * src/swis.conf: Rewrite. * src/swis.in (dirscan): Rewrite using new configuration framework.
2012-01-02Use Grecs to build command-line interface.Sergey Poznyakoff9
* src/.gitignore: Update. * src/Makefile.am (html_strip_SOURCES): Add html-strip-cli.h (word_split_SOURCES): Add word-split-cli.h (mysql_backend_SOURCES): Add mysql-backend-cli.h (EXTRA_DIST,BUILT_SOURCES): Update accordingly (.opt.h): New implicit rule. * src/html-strip-cli.opt: New file. * src/mysql-backend-cli.opt: New file. * src/word-split-cli.opt: New file. * src/html-strip.l: Use Grecs CLI. * src/mysql-backend.c: Likewise. * src/word-split.c: Likewise. * src/swis.h: Include sysexits.h
2012-01-02Happy GNU YearSergey Poznyakoff19
2011-12-31Include Grecs as a submodule. Generate ChangeLog from git log.Sergey Poznyakoff11
* .emacsrc: Silent change * .gitmodules: Include grecs. * ChangeLog: Rename to ChangeLog.svn * Makefile.am (SUBDIRS): Add grecs. * README-hacking: Update. * bootstrap: Check for gnulib-tool in PATH, bail out if not found. Initialize submodules. * configure.ac: Initialize grecs. * src/Makefile.am (INCLUDES, LDADD): Include grecs paths.
2011-12-31Add .gitignore files.Sergey Poznyakoff2
2007-10-13UpdateSergey Poznyakoff1
git-svn-id: file:///svnroot/swis/trunk@31 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-13* README-hacking: UpdateSergey Poznyakoff9
* configure.ac: Require wget * src/badword.c: Rename utf8_ to mbutf8_ where necessary * src/word-split.c (--unique): Remove option (flush_stack): Prefix each word with its offset in the full text stream. * src/utf8.c (utf8_strlen): Rename to mbutf8_strlen (utf8_strlen): New function (utf8_strdup): Rename to mbutf8_strdup (utf8_hash_string): mbutf8_hash_string (utf8_strcmp): mbutf8_strcmp * src/swis.h: Likewise * src/db.mysql: Update * src/swis.in: Update for new word-split usage * src/mysql-backend.c: Change database structure git-svn-id: file:///svnroot/swis/trunk@30 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-06Minor formatting changesSergey Poznyakoff1
git-svn-id: file:///svnroot/swis/trunk@29 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-06(swis): Run chmodSergey Poznyakoff1
git-svn-id: file:///svnroot/swis/trunk@28 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-06Update svn:ignoreSergey Poznyakoff0
git-svn-id: file:///svnroot/swis/trunk@27 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-06* src/word-split.c (usage): add --min-length.Sergey Poznyakoff5
* src/Makefile.am (bin_PROGRAMS): Rename to libexec_PROGRAMS. (bin_PROGRAMS): new program `swis' (EXTRA_DIST): Add swis.in db.mysql swis.conf (swis): New goal * src/db.mysql: New file * src/swis.conf: New file * src/swis.in: New file git-svn-id: file:///svnroot/swis/trunk@26 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-05* src/mysql-backend.c: Implement main functionality.Sergey Poznyakoff2
git-svn-id: file:///svnroot/swis/trunk@25 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-05* src/html-strip.l: Update Local Variables.Sergey Poznyakoff3
* src/mysql-backend.c: Implement core SQL functions. git-svn-id: file:///svnroot/swis/trunk@24 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-05* configure.ac: New option --with-mysqlSergey Poznyakoff6
* src/mysql-backend.c: New file * src/Makefile.am: Add mysql-backend.c * gnulib.modules: Remove mb* modules. * src/swis.h: Likewise. git-svn-id: file:///svnroot/swis/trunk@23 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-05UpdateSergey Poznyakoff1
git-svn-id: file:///svnroot/swis/trunk@22 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-05UpdateSergey Poznyakoff1
git-svn-id: file:///svnroot/swis/trunk@21 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-05UpdateSergey Poznyakoff0
git-svn-id: file:///svnroot/swis/trunk@20 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-05* src/badword.c (badword_p): Arg is constSergey Poznyakoff8
* src/word-split.c: New options --exclude, --exclude-from, --unique, --full-text. Add --tag option. * src/utf8.c (utf8_str_tolower, utf8_str_toupper): Fix * src/exclude.c: New file * src/Makefile.am (word_split_SOURCES): Add exclude.c * src/swis.h (badword_p, register_exclude_regexp) (read_exclude_regexps, excluded_word_p): New protos. * gnulib.modules: Add regex. git-svn-id: file:///svnroot/swis/trunk@19 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-04(usage): updateSergey Poznyakoff1
git-svn-id: file:///svnroot/swis/trunk@18 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-04* src/utf8io.c: New fileSergey Poznyakoff8
* src/badword.c: New file * src/word-split.c (word_split): Use fget_word * src/utf8.c (utf8_strlen, utf8_strdup, utf8_hash_string) (utf8_strcmp): New functions * src/Makefile.am (libswis_a_SOURCES): Add utf8io.c (word_split_SOURCES): Add badword.c * src/swis.h (utf8_strlen, utf8_strdup, utf8_hash_string) (utf8_strcmp, fget_word, read_badwords): New prototypes. * gnulib.modules: Add hash git-svn-id: file:///svnroot/swis/trunk@17 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-04Minor changeSergey Poznyakoff1
git-svn-id: file:///svnroot/swis/trunk@16 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-04* src/utf8.c: New file.Sergey Poznyakoff6
* src/Makefile.am (libswis_a_SOURCES): Add utf8.c * src/swis.h (utf8_mbtowc_internal, utf8_mbtowc, utf8_wctomb) (utf8_toupper, utf8_str_toupper, utf8_tolower) (utf8_str_tolower): New prototypes. * src/word-split.c (word_split): convert output to lower case. * src/html-strip.l (main): Minor fix. git-svn-id: file:///svnroot/swis/trunk@15 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-04BugfixesSergey Poznyakoff3
git-svn-id: file:///svnroot/swis/trunk@14 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-04src/version.c, src/readname.c: New filesSergey Poznyakoff8
src/word-split.c, src/html-strip.l: Add support for --from-file (-T) option. Makefile.am (libswis.a): New goal swis.h: Add new prototypes gnulib.modules: Add obstack git-svn-id: file:///svnroot/swis/trunk@13 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-04* src/Makefile.am (LDADD): Add LIBICONVSergey Poznyakoff4
* configure.ac: Minor change * gnulib.modules: Add iconv git-svn-id: file:///svnroot/swis/trunk@12 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-04New option --tag; Some minor fixes.Sergey Poznyakoff2
git-svn-id: file:///svnroot/swis/trunk@11 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-03UpdateSergey Poznyakoff0
git-svn-id: file:///svnroot/swis/trunk@10 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-03* src/word-split.c: New file.Sergey Poznyakoff5
* src/Makefile.am: Add word-split * src/swis.h: Include errno.h * src/html-strip.l: Minor fixes. git-svn-id: file:///svnroot/swis/trunk@9 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-03UpdateSergey Poznyakoff1
git-svn-id: file:///svnroot/swis/trunk@8 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-03UpdateSergey Poznyakoff1
git-svn-id: file:///svnroot/swis/trunk@7 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-03UpdateSergey Poznyakoff3
git-svn-id: file:///svnroot/swis/trunk@6 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-03UpdateSergey Poznyakoff1
git-svn-id: file:///svnroot/swis/trunk@5 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-03* src/swis.h: UpdateSergey Poznyakoff4
* src/html-strip.l: Implement command line options. Convert only html body. * gnulib.modules: New file * bootstrap: Read list of modules from gnulib.modules git-svn-id: file:///svnroot/swis/trunk@4 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-02HousekeepingSergey Poznyakoff3
git-svn-id: file:///svnroot/swis/trunk@3 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-02* configure.ac: Require iconvSergey Poznyakoff5
* src/Makefile.am (bin_PROGRAMS): Add html-strip. * src/html-strip.l: New file * src/swis.h: Add includes. git-svn-id: file:///svnroot/swis/trunk@2 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
2007-10-02Initial importSergey Poznyakoff8
git-svn-id: file:///svnroot/swis/trunk@1 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba

Return to:

Send suggestions and report system problems to the System administrator.