summaryrefslogtreecommitdiffabout
AgeCommit message (Collapse)AuthorFiles
2014-09-06Version 5.0release-5.0Sergey Poznyakoff2
2014-09-06Add new testSergey Poznyakoff5
* tests/samepath.at: New file. * tests/Makefile.am: Add new testcase. * tests/testsuite.at: Likewise. * NEWS: Update * README: Update
2014-09-01Version 4.1.91Sergey Poznyakoff2
2014-09-01Improve I18NSergey Poznyakoff4
* po/POTFILES.in: Add grecs sources. * src/Makefile.am (AM_CPPFLAGS): Add the definition of LOCALEDIR. * src/cmdline.opt (help_hook): Add missing gettext markers. * src/direvent.c (maint): Initialize libintl
2014-09-01Improve and document self-test modeSergey Poznyakoff5
* src/direvent.c (self_test): Run the program as /bin/sh -c program. * doc/direvent.texi: Document self-test mode and missing options. * doc/direvent.8: Document self-test. * doc/direvent.conf.5: Likewise. * src/cmdline.opt: Fix option declarations.
2014-09-01bootstrap: add option to get update po files and exitSergey Poznyakoff1
2014-08-31Accept multpile watchers for the same pathSergey Poznyakoff2
* src/direvent.h (dirwatcher)<handler_tail>: New member. * src/config.c (eventconf_flush): Use handler_tail to update the handler list. Remove erroneous check.
2014-08-27Minor changesSergey Poznyakoff1
* src/direvent.c (get_user_groups): Fix typo in a diagnostic message.
2014-08-26bootstrap: download po filesSergey Poznyakoff1
2014-08-25Update NEWSSergey Poznyakoff1
2014-08-25Upgrade grecsSergey Poznyakoff1
2014-08-25I18NSergey Poznyakoff20
* .gitignore: Add am * bootstrap: Create am, unless exists. * Makefile.am (SUBDIRS): Add po * acinclude.m4: New file. * configure.ac: Use gettext * doc/direvent.texi: Update * po/.gitignore: New file * po/POTFILES.in: New file. * po/Makevars: New file. * src/Makefile.am (LDADD): Add @LIBINTL@ (noinst_HEADERS): Add gettext.h * src/config.c: gettextize * src/direvent.c: Likewise. * src/environ.c: Likewise. * src/hashtab.c: Likewise. * src/progman.c: Likewise. * src/watcher.c: Likewise. * src/gettext.h: New file. * src/direvent.h: Add missing prototypes. * tests/re05.at: Remove superfluous quoting.
2014-08-22Update docsSergey Poznyakoff2
2014-08-21Minor fix in docsSergey Poznyakoff2
2014-08-21Direvent is dubbed GNU programSergey Poznyakoff4
* configure.ac: Change package name to GNU Direvent * doc/direvent.8: Reflect we are GNU * doc/direvent.texi: Likewise. * src/cmdline.opt: Likewise.
2014-08-17Rewrite testsuite.Sergey Poznyakoff27
Get rid of the kludgy waitpid; use the built-in self-test mode instead. * src/cmdline.opt: New option --self-test. * src/direvent.c (self_test_prog,self_test_pid) (exit_code): New globals. (self_test): New function. (main): Call self_test if required. If stop is set, break the loop immediately. Return exit_code. * src/direvent.h (stop,self_test_pid,exit_code): New externs. * src/environ.c (environ_setup): Always define DIREVENT_SELF_TEST_PID when in self-test mode. * src/progman.c (process_cleanup): Special handling for termination of the self-test script. (runcmd): Define self_test_pid envvar in self-test mode. * tests/Makefile.am: Remove waitpid. * tests/waitfile.c: Removed. * tests/printname: Send HUP to the self-test PID if sentinel file is created. * tests/envdump.c (read_pid_and_sig): Restore arg to its pristine state before exiting. * tests/testsuite.at (AT_DIREVENT_TEST): New macro. * tests/attrib.at: Rewrite using AT_DIREVENT_TEST. * tests/cmdexp.at: Likewise. * tests/create.at: Likewise. * tests/createrec.at: Likewise. * tests/delete.at: Likewise. * tests/env00.at: Likewise. * tests/env01.at: Likewise. * tests/env02.at: Likewise. * tests/env03.at: Likewise. * tests/glob01.at: Likewise. * tests/glob02.at: Likewise. * tests/re01.at: Likewise. * tests/re02.at: Likewise. * tests/re03.at: Likewise. * tests/re04.at: Likewise. * tests/re05.at: Likewise. * tests/write.at: Likewise. * grecs (untracked content)
2014-08-17Rename project to direvent.Sergey Poznyakoff55
2014-08-10Version 4.1.90dircond-lastSergey Poznyakoff8
* NEWS: Change version number * configure.ac: Likewise. * doc/dircond.conf.5: Update copyright years. * doc/dircond.texi: Update copyright years. * src/config.c: Update copyright years. * src/dircond.h: Update copyright years. * src/fnpat.c: Update copyright years. * tests/envdump.c: Update copyright years.
2014-07-29Introduce pattern negation.Sergey Poznyakoff11
* doc/dircond.conf.5: Document negated patterns. * doc/dircond.texi: Likewise. * src/config.c (file_name_pattern): A ! in front of a pattern indicates negation. * src/dircond.h (filename_pattern)<neg>: New member. * src/fnpat.c: Honor neg member. * tests/envdump.c (main): don't depend on the order of command line options. * tests/glob02.at: New test case. * tests/re05.at: Likewise. * tests/Makefile.am: Add new files. * tests/testsuite.at: Include new testcases.
2013-12-27Remove trailing tabs in doc/dircond.8Sergey Poznyakoff1
2013-12-27Update gendocs_templaterelease-4.1Sergey Poznyakoff1
2013-12-27Update dircond.conf.5Sergey Poznyakoff1
2013-12-27Version 4.1Sergey Poznyakoff6
* NEWS: Document new release. * Makefile.am * configure.ac: Enable silent rules. Set version number 4.1 * doc/Makefile.am: Add copyleft header. * src/Makefile.am: Likewise. * tests/Makefile.am: Add missing silent rule markers.
2013-12-27Fix documentation of the "file" statement.Sergey Poznyakoff1
2013-12-27Implement filename selectionSergey Poznyakoff18
* NEWS: Update. * doc/dircond.texi: Document the file statement. * src/fnpat.c: New file. * src/Makefile.am (dircond_SOURCES): Add fnpat.c * src/config.c (eventconf) <fnames>: New member. (eventconf_free): Free fnames. (eventconf_flush): Set fnames. (watcher_kw) <file>: New statement. * src/dircond.h (filename_pattern): New struct. (handler) <fnames>: New member. (handler_matches_event): New macro. (filename_pattern_free) (filename_pattern_match): New proto. * src/ev_inotify.c (process_event): Use handler_matches_event. * src/ev_kqueue.c: Likewise. * src/watcher.c (deliver_ev_create): Likewise. * tests/Makefile.am: Add new tests. * tests/testsuite.at: Likewise. * tests/create.at: Add a distinctive keyword. * tests/glob01.at: New testcase. * tests/re01.at: New testcase. * tests/re02.at: Likewise. * tests/re03.at: Likewise. * tests/re04.at: Likewise.
2013-12-17Upgrade grecsSergey Poznyakoff1
2013-10-02Fix the testsuite, bump version numberSergey Poznyakoff6
* configure.ac: Update version number. * NEWS: Update version number. * tests/Makefile.am: Distribute printname. * tests/printname: New file. * tests/atlocal.in (SRCDIR): New variable. * tests/createrec.at: Fix path to printname.
2013-09-29Generate genev_create event for subdirectories.Sergey Poznyakoff16
A genev_create event is generated for all files and directories below the newly created one, if required by the configuration. At the same time, new watchers are installed. This is illustrated by the testcase "createrec.at", which version 4.0 wouldn't pass, because it incorrectly assumed that a notification would arrive for each subdirectory or subfile, once the watcher is installed for the parent directory. * src/watcher.c (subwatcher_create): Return integer. Take additional argument (notify). If it is true, register watchers for the subdirectories. (deliver_ev_create): New function. (watch_subdirs): Return number of watchers installed or -1 on error. (watch_pathname): Remove. All callers use subwatcher_create instead. * tests/Makefile.am: Add new test. * tests/testsuite.at: Likewise. * tests/attrib.at: Use pwd -P, instead of plain pwd. * tests/cmdexp.at: Likewise. * tests/create.at: Likewise. * tests/delete.at: Likewise. * tests/env00.at: Likewise. * tests/env01.at: Likewise. * tests/env02.at: Likewise. * tests/env03.at: Likewise. * tests/write.at: Likewise.
2013-09-15Minor fixes in the docs.Sergey Poznyakoff1
2013-06-05Fix typos in manpagesSergey Poznyakoff2
2013-06-04Update scripts for generating documentation output.Sergey Poznyakoff2
2013-06-04Update dircond manpagerelease-4.0Sergey Poznyakoff1
2013-06-04Finish the docs. Set version number 4.0. Change bug-report address.Sergey Poznyakoff6
2013-06-04Update docs.Sergey Poznyakoff7
* NEWS: Update. * doc/dircond.conf.5: Update. * doc/dircond.texi: Update. * src/config.c (cb_watcher): Treat missing "event" statement as "all events". * src/dircond.h (evtsetall): New prototype. * src/event.c (evtsetall): New function. * src/environ.c: Minor fix.
2013-06-04inotify: fix definition of the generic write eventSergey Poznyakoff1
* src/ev_inotify.c (genev_xlat): Translate IN_MODIFY|IN_CLOSE_WRITE to GENEV_WRITE.
2013-06-04Update docsSergey Poznyakoff1
2013-06-03Reorganize namespace.Sergey Poznyakoff8
2013-06-03Revamp initialization system in a cleaner way.Sergey Poznyakoff10
* src/Makefile.am: Use the proper detach-*.c source depending on the configuration output. * src/rdaemon.c: Remove. * src/detach-std.c: New file. * src/detach-bsd.c: New file. * src/detach-darwin.c: New file. * src/dircond.c (signal_setup): Use sigv_set_all. (sigmain): Do not reinstall the handler. (main): Use detach() instead of daemon(). * src/dircond.h (detach): New proto. (NITEMS): New macro. (sigv_set_action, sigv_set_all) (sigv_set_tab, sigv_set_action_tab): New protos. * src/sigv.c: New file. * tests/waitfile.c: Remove unused variable. * doc/dircond.8: Update. * doc/dircond.texi: Update.
2013-06-02Improve docsSergey Poznyakoff3
2013-06-02Fix a copy-paste error.Sergey Poznyakoff1
2013-06-02Write the docs in manpage format:Sergey Poznyakoff21
* doc/.gitignore * doc/Makefile.am: Add rules for texinfo documents. * doc/dircond.1: Removed. * doc/dircond.8: New file. * doc/dircond.conf.5: New file. * doc/dircond.texi: New file (a placeholder). * doc/fdl.texi: New file. * doc/gendocs_template: New file. Rename event variables and the corresponding environment ones: * src/environ.c * src/dircond.c * src/progman.c * tests/.gitignore * tests/attrib.at * tests/cmdexp.at * tests/create.at * tests/delete.at * tests/env00.at * tests/env01.at * tests/env03.at * tests/remove.at * tests/write.at
2013-06-01BugfixSergey Poznyakoff1
* src/dircond.c (vdiag): Fix memory allocation
2013-06-01Uograde grecsSergey Poznyakoff1
2013-06-01Upgrade grecsSergey Poznyakoff1
2013-06-01Initial support for Darwin.Sergey Poznyakoff9
Basically the same as BSD, except that it lacks rfork, which makes it impossible to initialize watchers before daemonizing. * configure.ac: Check for rfork, define the DIRCOND_FORK conditional if present. * src/Makefile.am [DIRCOND_KQUEUE][DIRCOND_RFORK]: Add rdaemon.c to the sources. * src/dircond.c: Define INIT_EARLY if it is safe to initialize the event system before forking. Currently the only supported system that's not capable of that is Darwin. (main): Call setup_watchers conditionally, before or after the call to daemon. Move call to evsys_init to setup_watchers. Reorganize the main loop. * src/dircond.h (event_mask_init): Change signature. The third argument specifies which mask bits we're interested in. All uses changed. * src/event.c: Ditto. * src/watcher.c (setup_watchers): Call evsys_init.
2013-06-01Test environment modifications.Sergey Poznyakoff7
* src/config.c (cb_environ): Accept list argument. * tests/Makefile.am: Add new tests. * tests/testsuite.at: Add new tests. * tests/env00.at: New file. * tests/env01.at: New file. * tests/env02.at: New file. * tests/env03.at: New file.
2013-06-01Test command line expansions.Sergey Poznyakoff9
* envdump.c: Accept unrecognized command line parameters. Use -f option to redirect output to a file. All uses updated. * cmdexp.at: New file. * Makefile.am: Add cmdexp.at * testsuite.at: Include cmdexp.at
2013-06-01Fix CREATE detection with kqueue.Sergey Poznyakoff5
* src/ev_kqueue.c (check_created): Fall back to hash lookup to see if the file is recently created. * tests/create.at: Remove the sleep. Wait for the pidfile to appear before proceding with the test. * tests/delete.at: Wait for the pidfile to appear before proceding with the test. * tests/remove.at: Likewise. * tests/write.at: Likewise.
2013-05-31Minor fixes.Sergey Poznyakoff3
2013-05-31Minor fixesSergey Poznyakoff3

Return to:

Send suggestions and report system problems to the System administrator.