diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-05-29 10:24:02 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-06-01 01:10:43 +0300 |
commit | 0cd36f1cc93778600ad86e91ffafc0ca6bd79326 (patch) | |
tree | 6bd1714e11422e902861746a9a7fa9b46676d23b | |
parent | 0dceaeba116b220c690ebef5880a38d521ce76a9 (diff) | |
download | direvent-0cd36f1cc93778600ad86e91ffafc0ca6bd79326.tar.gz direvent-0cd36f1cc93778600ad86e91ffafc0ca6bd79326.tar.bz2 |
Change version number. Update THANKS file. Improve -h output.
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | THANKS | 3 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | dircond.c | 17 |
4 files changed, 21 insertions, 5 deletions
@@ -1,10 +1,10 @@ -dircond -- history of user-visible changes. 2013-05-26 +dircond -- history of user-visible changes. 2013-05-29 Copyright (C) 2012, 2013 Sergey Poznyakoff See the end of file for copying conditions. Please send dircond bug reports to <gray+dircond@gnu.org.ua> -Version 3.99 (Git) +Version 3.99.90 (Git) Version 3.0 (Git) @@ -0,0 +1,3 @@ +Dircond THANKS file. + +Zeus Panchenko <zeus@ibs.dn.ua> diff --git a/configure.ac b/configure.ac index f5513c3..f6bb5f5 100644 --- a/configure.ac +++ b/configure.ac @@ -15,7 +15,7 @@ # along with Dircond. If not, see <http://www.gnu.org/licenses/>. AC_PREREQ([2.69]) -AC_INIT([dircond], [3.99], [gray+dircond@gnu.org.ua],, +AC_INIT([dircond], [3.99.90], [gray+dircond@gnu.org.ua],, [http://www.gnu.org.ua/software/dircond]) AC_CONFIG_SRCDIR([dircond.c]) AC_CONFIG_HEADERS([config.h]) @@ -23,12 +23,13 @@ #include <signal.h> #ifndef SYSCONFDIR -# define SYSCONFDIR "/etc/" +# define SYSCONFDIR "/etc" #endif +#define DEFAULT_CONFFILE SYSCONFDIR "/dircond.conf" /* Configuration settings */ const char *program_name; /* This program name */ -const char *conffile = SYSCONFDIR "/dircond.conf"; +const char *conffile = DEFAULT_CONFFILE; int foreground; /* Remain in the foreground */ char *tag; /* Syslog tag */ int facility = -1; /* Use this syslog facility for logging. @@ -346,11 +347,18 @@ ev_log(int flags, struct dirwatcher *dp) } +#if USE_IFACE == IFACE_INOTIFY +# define INTERFACE "inotify" +#elif USE_IFACE == IFACE_KQUEUE +# define INTERFACE "kqueue" +#endif + /* Output a help summary. Return a code suitable for exit(2). */ int help() { printf("Usage: %s [OPTIONS] [CONFIG]\n", program_name); + printf("%s monitors changes in directories\n", program_name); printf("OPTIONS are:\n\n"); printf(" -d increase debug verbosity\n"); @@ -365,6 +373,11 @@ help() printf(" -h output this help summary\n"); printf(" -V print program version and exit\n\n"); + printf("Optional CONFIG argument supplies the configuration file\n" + "to use instead of %s.\n\n", DEFAULT_CONFFILE); + + printf("This dircond uses %s interface.\n\n", INTERFACE); + printf("Report bugs to <%s>.\n", PACKAGE_BUGREPORT); return 0; |