* modules/same-inode: New module.
authorJim Meyering <jim@meyering.net>
Thu, 10 Aug 2006 13:40:17 +0000 (13:40 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 10 Aug 2006 13:40:17 +0000 (13:40 +0000)
* modules/dev-ino: New module.
* modules/cycle-check: Depend on these modules, rather than simply
including their .h files.
(Makefile.am): Don't list cycle-check.[ch] here, now that they're
required via m4/cycle-check.m4.
* modules/same: Depend on new same-inode module, rather than
including same-inode.h.
* modules/chdir-safer: New file.

* m4/dev-ino.m4, m4/same-inode.m4: New files.

ChangeLog
m4/ChangeLog
m4/dev-ino.m4 [new file with mode: 0644]
m4/same-inode.m4 [new file with mode: 0644]
modules/chdir-safer [new file with mode: 0644]
modules/cycle-check
modules/dev-ino [new file with mode: 0644]
modules/same
modules/same-inode [new file with mode: 0644]

index c1ff92aeef972ac748ff5fa3d78b8854ffa1c5bd..9d5cd1a3026af5e8a13d62c9dce2b52ed3900ef0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2006-08-10  Jim Meyering  <jim@meyering.net>
 
+       * modules/same-inode: New module.
+       * modules/dev-ino: New module.
+       * modules/cycle-check: Depend on these modules, rather than simply
+       including their .h files.
+       (Makefile.am): Don't list cycle-check.[ch] here, now that they're
+       required via m4/cycle-check.m4.
+       * modules/same: Depend on new same-inode module, rather than
+       including same-inode.h.
+       * modules/chdir-safer: New file.
+
        * modules/chown (Depends-on): Add stat-macros.
 
 2006-08-10  Eric Blake  <ebb9@byu.net>
index d26f5dacfd7a7c29327a8339fd7f3d54c169b4b2..8639aecc9230006759d71cc86dfe746fc54609b0 100644 (file)
@@ -1,3 +1,7 @@
+2006-08-10  Jim Meyering  <jim@meyering.net>
+
+       * dev-ino.m4, same-inode.m4: New files.
+
 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
 
        * argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
diff --git a/m4/dev-ino.m4 b/m4/dev-ino.m4
new file mode 100644 (file)
index 0000000..7b51d98
--- /dev/null
@@ -0,0 +1,10 @@
+#serial 1
+dnl Copyright (C) 2006 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+AC_DEFUN([gl_STRUCT_DEV_INO],
+[
+  AC_LIBSOURCES([dev-ino.h])
+])
diff --git a/m4/same-inode.m4 b/m4/same-inode.m4
new file mode 100644 (file)
index 0000000..55b3928
--- /dev/null
@@ -0,0 +1,10 @@
+#serial 1
+dnl Copyright (C) 2006 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+AC_DEFUN([gl_SAME_INODE],
+[
+  AC_LIBSOURCES([same-inode.h])
+])
diff --git a/modules/chdir-safer b/modules/chdir-safer
new file mode 100644 (file)
index 0000000..ee6c6ae
--- /dev/null
@@ -0,0 +1,25 @@
+Description:
+like chdir, but safer
+
+Files:
+lib/chdir-safer.h
+lib/chdir-safer.c
+m4/chdir-safer.m4
+
+Depends-on:
+same-inode
+stdbool
+
+configure.ac:
+gl_CHDIR_SAFER
+
+Makefile.am:
+
+Include:
+"chdir-safer.h"
+
+License:
+GPL
+
+Maintainer:
+Jim Meyering
index 090a701eaf477fb1ce339f21e7ca2558b095b22a..182cb01e3a4177ba2b8a3c5bdd79a20c53e1bbe7 100644 (file)
@@ -4,16 +4,16 @@ help detect directory cycles efficiently
 Files:
 lib/cycle-check.c
 lib/cycle-check.h
-lib/same-inode.h
-lib/dev-ino.h
+m4/cycle-check.m4
 
 Depends-on:
+dev-ino
+same-inode
 stdbool
 
 configure.ac:
 
 Makefile.am:
-lib_SOURCES += cycle-check.c cycle-check.h dev-ino.h same-inode.h
 
 Include:
 "cycle-check.h"
diff --git a/modules/dev-ino b/modules/dev-ino
new file mode 100644 (file)
index 0000000..1ba601d
--- /dev/null
@@ -0,0 +1,22 @@
+Description:
+declare a simple (device, inode) struct
+
+Files:
+lib/dev-ino.h
+m4/dev-ino.m4
+
+Depends-on:
+
+configure.ac:
+gl_STRUCT_DEV_INO
+
+Makefile.am:
+
+Include:
+"dev-ino.h"
+
+License:
+GPL
+
+Maintainer:
+Jim Meyering
index 70b1e146e2879b2360e2d48d3ddf36242c98a40b..a3616d0f0894597e5572e2302d045dee7e37c9ae 100644 (file)
@@ -5,13 +5,13 @@ directory.
 Files:
 lib/same.h
 lib/same.c
-lib/same-inode.h
 m4/same.m4
 
 Depends-on:
 xalloc
 error
 dirname
+same-inode
 stdbool
 
 configure.ac:
diff --git a/modules/same-inode b/modules/same-inode
new file mode 100644 (file)
index 0000000..0d349dd
--- /dev/null
@@ -0,0 +1,22 @@
+Description:
+compare inodes
+
+Files:
+lib/same-inode.h
+m4/same-inode.m4
+
+Depends-on:
+
+configure.ac:
+gl_SAME_INODE
+
+Makefile.am:
+
+Include:
+"same-inode.h"
+
+License:
+LGPL
+
+Maintainer:
+Jim Meyering