aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2013-05-26 18:28:47 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2013-06-01 01:09:30 +0300
commitcd952b4843cc953b0868b828eccb2e3d2f87b266 (patch)
treeac1cf5be362c2fc0cf5d120cf4c9b587dcb158d5
parente0daa608485152eabb297614d83e9e3d1dac69fd (diff)
downloaddirevent-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--.gitignore29
-rw-r--r--AUTHORS1
-rw-r--r--Makefile71
-rw-r--r--Makefile.am20
-rw-r--r--NEWS8
-rw-r--r--THANKS0
-rw-r--r--configure.ac42
-rw-r--r--dircond.c1
-rw-r--r--event.c1
-rw-r--r--hashtab.c1
-rw-r--r--pathdefn.c1
-rw-r--r--watcher.c1
12 files changed, 98 insertions, 78 deletions
diff --git a/.gitignore b/.gitignore
index 03c1b4e..ed83d47 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..ca6ccd1
--- /dev/null
+++ b/AUTHORS
@@ -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
diff --git a/NEWS b/NEWS
index 51e606a..f049a7c 100644
--- a/NEWS
+++ b/NEWS
@@ -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/THANKS b/THANKS
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/THANKS
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
diff --git a/dircond.c b/dircond.c
index 284e66c..3c69149 100644
--- a/dircond.c
+++ b/dircond.c
@@ -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>
diff --git a/event.c b/event.c
index 1624059..80ef667 100644
--- a/event.c
+++ b/event.c
@@ -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>
diff --git a/hashtab.c b/hashtab.c
index f7fe236..93284ae 100644
--- a/hashtab.c
+++ b/hashtab.c
@@ -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>
diff --git a/pathdefn.c b/pathdefn.c
index 6c4d8b1..33817ab 100644
--- a/pathdefn.c
+++ b/pathdefn.c
@@ -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>
diff --git a/watcher.c b/watcher.c
index a5cf11b..d015881 100644
--- a/watcher.c
+++ b/watcher.c
@@ -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>

Return to:

Send suggestions and report system problems to the System administrator.