diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-05-26 18:28:47 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-06-01 01:09:30 +0300 |
commit | cd952b4843cc953b0868b828eccb2e3d2f87b266 (patch) | |
tree | ac1cf5be362c2fc0cf5d120cf4c9b587dcb158d5 | |
parent | e0daa608485152eabb297614d83e9e3d1dac69fd (diff) | |
download | direvent-cd952b4843cc953b0868b828eccb2e3d2f87b266.tar.gz direvent-cd952b4843cc953b0868b828eccb2e3d2f87b266.tar.bz2 |
Autoconfiscate
* .gitignore: Update
* AUTHORS: New file.
* Makefile.am: New file.
* THANKS: New file.
* configure.ac: New file.
* Makefile: Remove.
* NEWS: Update.
* dircond.c: Include config.h
* event.c: Likewise.
* hashtab.c: Likewise.
* pathdefn.c: Likewise.
* watcher.c: Likewise.
-rw-r--r-- | .gitignore | 29 | ||||
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | Makefile | 71 | ||||
-rw-r--r-- | Makefile.am | 20 | ||||
-rw-r--r-- | NEWS | 8 | ||||
-rw-r--r-- | THANKS | 0 | ||||
-rw-r--r-- | configure.ac | 42 | ||||
-rw-r--r-- | dircond.c | 1 | ||||
-rw-r--r-- | event.c | 1 | ||||
-rw-r--r-- | hashtab.c | 1 | ||||
-rw-r--r-- | pathdefn.c | 1 | ||||
-rw-r--r-- | watcher.c | 1 |
12 files changed, 98 insertions, 78 deletions
@@ -1,7 +1,28 @@ -ChangeLog -dircond -*~ +*.a *.o *.tar.* +*~ +.deps .gdbinit -.emacs* +.emacs.desktop +.emacs.desktop.lock +.emacsrc +ABOUT-NLS +ChangeLog +INSTALL +Makefile +Makefile.in +TAGS +aclocal.m4 +autom4te.cache +build-aux +config.h +config.h.in +config.log +config.status +configure +core +m4 +stamp-h1 +tmp/ +dircond @@ -0,0 +1 @@ +Sergey Poznyakoff <gray@gnu.org.ua> diff --git a/Makefile b/Makefile deleted file mode 100644 index 31d332d..0000000 --- a/Makefile +++ /dev/null @@ -1,71 +0,0 @@ -# dircond - directory content watcher daemon -# Copyright (C) 2012, 2013 Sergey Poznyakoff -# -# Dircond is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by the -# Free Software Foundation; either version 3 of the License, or (at your -# option) any later version. -# -# Dircond is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with dircond. If not, see <http://www.gnu.org/licenses/>. - -CFLAGS=-O2 -g -PREFIX=/usr/local -BINDIR=$(PREFIX)/bin -MANDIR=$(PREFIX)/share/man -PACKAGE=dircond -VERSION=3.0 -DISTFILES=README COPYING NEWS ChangeLog Makefile $(SRCS) $(INCS) dircond.1 -SRCS=dircond.c config.c event.c hashtab.c watcher.c pathdefn.c -OBJS=$(SRCS:.c=.o) -INCS=dircond.h -CPPFLAGS=-DVERSION=\"$(VERSION)\" - -dircond: $(OBJS) - cc -odircond $(CFLAGS) $(OBJS) - -install-bin: dircond - mkdir -p $(DESTDIR)$(BINDIR) - cp dircond $(DESTDIR)$(BINDIR) - -install-man: dircond.1 - mkdir -p $(DESTDIR)$(MANDIR)/man1 - cp dircond.1 $(DESTDIR)$(MANDIR)/man1 - -install: install-bin install-man - -distdir = $(PACKAGE)-$(VERSION) - -distdir: $(DISTFILES) - rm -rf $(distdir) - mkdir $(distdir) - cp $(DISTFILES) $(distdir) - -dist: distdir - tar cfz $(distdir).tar.gz $(distdir) - rm -rf $(distdir) - -distcheck: distdir - mkdir $(distdir)/_inst; \ - cd $(distdir) || exit 2;\ - make || exit 2; \ - make DESTDIR=`pwd`/_inst install || exit 2 - make dist - -.PHONY: ChangeLog -ChangeLog: - @if test -d .git; then \ - git log --pretty='format:%ct %an <%ae>%n%n%s%n%n%b%n' | \ - awk -f git2chg.awk > ChangeLog.tmp; \ - cmp ChangeLog ChangeLog.tmp > /dev/null 2>&1 || \ - mv ChangeLog.tmp ChangeLog; \ - rm -f ChangeLog.tmp; \ - fi - -clean: - rm -f $(OBJS) dircond diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..0070b13 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,20 @@ +bin_PROGRAMS=dircond +dircond_SOURCES=\ + dircond.c\ + dircond.h\ + config.c\ + event.c\ + hashtab.c\ + watcher.c\ + pathdefn.c + +dist_man_MANS=dircond.1 + +.PHONY: ChangeLog +ChangeLog: + $(AM_V_GEN)if test -d .git; then \ + git log --pretty='format:%ct %an <%ae>%n%n%s%n%n%b%n' | \ + awk -f $(top_srcdir)/git2chg.awk > ChangeLog; \ + fi + +EXTRA_DIST=git2chg.awk @@ -1,12 +1,14 @@ -dircond -- history of user-visible changes. 2013-06-01 +dircond -- history of user-visible changes. 2013-05-26 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.0, 2013-06-01 +Version 3.99 (Git) + +Version 3.0 (Git) -Introduce configuration file. +Introduce a configuration file. Version 2.0, 2013-01-11 diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..16f1b7c --- /dev/null +++ b/configure.ac @@ -0,0 +1,42 @@ +# This file is part of Dircond -*- autoconf -*- +# Copyright (C) 2012, 2013 Sergey Poznyakoff +# +# Dircond is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# Dircond is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# 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],, + [http://www.gnu.org.ua/software/dircond]) +AC_CONFIG_SRCDIR([dircond.c]) +AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_AUX_DIR([build-aux]) +AM_INIT_AUTOMAKE([1.11.5 gnu tar-ustar]) + +# Checks for programs. +AC_PROG_AWK +AC_PROG_CC +AC_PROG_INSTALL +AC_PROG_MAKE_SET + +# Checks for libraries. + +# Checks for header files. +AC_CHECK_HEADERS([sys/inotify.h]) + +# Checks for typedefs, structures, and compiler characteristics. + +# Checks for library functions. +AC_CHECK_FUNCS([inotify_init]) + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT @@ -14,6 +14,7 @@ You should have received a copy of the GNU General Public License along with dircond. If not, see <http://www.gnu.org/licenses/>. */ +#include "config.h" #include <stdio.h> #include <stdlib.h> #include <stdarg.h> @@ -14,6 +14,7 @@ You should have received a copy of the GNU General Public License along with dircond. If not, see <http://www.gnu.org/licenses/>. */ +#include "config.h" #include <stdlib.h> #include <string.h> #include <syslog.h> @@ -14,6 +14,7 @@ You should have received a copy of the GNU General Public License along with Dircond. If not, see <http://www.gnu.org/licenses/>. */ +#include "config.h" #include <stdlib.h> #include <errno.h> #include <string.h> @@ -14,6 +14,7 @@ You should have received a copy of the GNU General Public License along with Dircond. If not, see <http://www.gnu.org/licenses/>. */ +#include "config.h" #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -14,6 +14,7 @@ You should have received a copy of the GNU General Public License along with dircond. If not, see <http://www.gnu.org/licenses/>. */ +#include "config.h" #include <stdlib.h> #include <string.h> #include <errno.h> |