]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Move our fnmatch/glob implementation into gl/lib
authorPaul Smith <psmith@gnu.org>
Thu, 7 Jul 2022 05:18:45 +0000 (01:18 -0400)
committerPaul Smith <psmith@gnu.org>
Sat, 9 Jul 2022 14:47:13 +0000 (10:47 -0400)
The gl subdirectory contains our local versions of gnulib module
implementations, so move fnmatch* and glob* from lib to gl/lib.

* gl/modules/make-glob: Add a proper Files: section.
* lib/.gitignore: Delete unnecessary ignore file: lib is empty.
* .gitignore: Add lib/ as an ignored directory.

.gitignore
gl/lib/fnmatch.c [moved from lib/fnmatch.c with 100% similarity]
gl/lib/fnmatch.in.h [moved from lib/fnmatch.in.h with 100% similarity]
gl/lib/glob.c [moved from lib/glob.c with 100% similarity]
gl/lib/glob.in.h [moved from lib/glob.in.h with 100% similarity]
gl/modules/make-glob
lib/.gitignore [deleted file]

index f548779f0b01a8d3d3b12391395fa6910f993de6..ef5292f9877e4c6bda8c654e86de229caf8f68c2 100644 (file)
@@ -17,6 +17,7 @@ GTAGS
 *.rej
 
 # Configure artifacts
+/lib/
 ABOUT-NLS
 INSTALL
 Makefile
similarity index 100%
rename from lib/fnmatch.c
rename to gl/lib/fnmatch.c
similarity index 100%
rename from lib/fnmatch.in.h
rename to gl/lib/fnmatch.in.h
similarity index 100%
rename from lib/glob.c
rename to gl/lib/glob.c
similarity index 100%
rename from lib/glob.in.h
rename to gl/lib/glob.in.h
index bf5a1d92d1080b943010de3701da51becbdbad32..d9a34d338bfc4e11feea0a5720c08b6c4fa741f6 100644 (file)
@@ -2,6 +2,11 @@ Description:
 GNU make version of fnmatch()/glob() functions.  This is a holdover from
 a very old version of the globbing library.
 
+Files:
+lib/fnmatch.c
+lib/fnmatch.in.h
+lib/glob.c
+lib/glob.in.h
 
 configure.ac:
 # Check the system to see if it provides GNU glob.  If not, use our
@@ -28,7 +33,6 @@ AM_CONDITIONAL([USE_SYSTEM_GLOB], [test "$make_cv_sys_gnu_glob" = yes])
 USE_SYSTEM_GLOB="$make_cv_sys_gnu_glob"
 AC_SUBST([USE_SYSTEM_GLOB])
 
-
 Makefile.am:
 if !USE_SYSTEM_GLOB
 libgnu_a_SOURCES += fnmatch.c
@@ -60,7 +64,6 @@ endif
 
 EXTRA_DIST += fnmatch.in.h glob.in.h
 
-
 Include:
 <glob.h>
 
diff --git a/lib/.gitignore b/lib/.gitignore
deleted file mode 100644 (file)
index cb391c4..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-*
-!/.gitignore
-
-!/fnmatch.c
-!/fnmatch.in.h
-/fnmatch.h
-
-!/glob.c
-!/glob.in.h
-/glob.h
-