]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
Rename module sysexits to sysexits-h.
authorBruno Haible <bruno@clisp.org>
Fri, 27 Dec 2024 22:39:46 +0000 (23:39 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 27 Dec 2024 22:39:46 +0000 (23:39 +0100)
* modules/sysexits-h: Renamed from modules/sysexits.
* modules/sysexits-h-tests: Renamed from modules/sysexits-tests.
* modules/sysexits-h-c++-tests: Renamed from modules/sysexits-c++-tests.
* tests/test-sysexits-h.c: Renamed from tests/test-sysexits.c.
* tests/test-sysexits-h-c++.cc: Renamed from tests/test-sysexits-c++.cc.
* doc/glibc-headers/sysexits.texi: Update.
* modules/* (Depends-on): Update.
* modules/sysexits: New file.

ChangeLog
doc/glibc-headers/sysexits.texi
modules/argp
modules/sysexits
modules/sysexits-c++-tests [deleted file]
modules/sysexits-h [new file with mode: 0644]
modules/sysexits-h-c++-tests [new file with mode: 0644]
modules/sysexits-h-tests [new file with mode: 0644]
modules/sysexits-tests [deleted file]
tests/test-sysexits-h-c++.cc [moved from tests/test-sysexits-c++.cc with 100% similarity]
tests/test-sysexits-h.c [moved from tests/test-sysexits.c with 100% similarity]

index 57d7d1e99f76e19e1a94f7f21201b493999626e2..f28bf8e63fb33806ec9723e378074487eaf28d87 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2024-12-27  Bruno Haible  <bruno@clisp.org>
+
+       Rename module sysexits to sysexits-h.
+       * modules/sysexits-h: Renamed from modules/sysexits.
+       * modules/sysexits-h-tests: Renamed from modules/sysexits-tests.
+       * modules/sysexits-h-c++-tests: Renamed from modules/sysexits-c++-tests.
+       * tests/test-sysexits-h.c: Renamed from tests/test-sysexits.c.
+       * tests/test-sysexits-h-c++.cc: Renamed from tests/test-sysexits-c++.cc.
+       * doc/glibc-headers/sysexits.texi: Update.
+       * modules/* (Depends-on): Update.
+       * modules/sysexits: New file.
+
 2024-12-27  Bruno Haible  <bruno@clisp.org>
 
        Rename module strings to strings-h.
index b3cbbc80c7b47ef6b9857cdcd76cc0696c411dab..22b3201d69a1b4eb8f1c00e6aed9e985d16e0772 100644 (file)
@@ -3,8 +3,8 @@
 
 Defines the @code{EX_*} macros, including @code{EX_OK}.
 
-Gnulib module: sysexits
-@mindex sysexits
+Gnulib module: sysexits-h
+@mindex sysexits-h
 
 Portability problems fixed by Gnulib:
 @itemize
index a4b0183a87510ff4e97547e4c286d9895e4533c7..87da44c85c0a2a61627756e2a7ba6f30192b72f8 100644 (file)
@@ -24,7 +24,7 @@ basename-lgpl
 extern-inline
 getopt-gnu
 strchrnul
-sysexits
+sysexits-h
 malloc-gnu
 mempcpy
 strndup
index 384c9a2308b23091fa0b0e993ef59b20e3c3500c..65219e72446e958e9e951ab5d9cbb89d6be460be 100644 (file)
@@ -1,42 +1,20 @@
 Description:
 Exit status codes for some BSD system programs.
 
+Status:
+deprecated
+
+Notice:
+This module is deprecated. Use the module 'sysexits-h' instead.
+
 Files:
-lib/sysexits.in.h
-m4/sysexits.m4
 
 Depends-on:
-gen-header
-include_next
-stdlib-h
+sysexits-h
 
 configure.ac:
-gl_SYSEXITS
-gl_CONDITIONAL_HEADER([sysexits.h])
-AC_PROG_MKDIR_P
 
 Makefile.am:
-BUILT_SOURCES += $(SYSEXITS_H)
-
-# We need the following in order to create <sysexits.h> when the system
-# doesn't have one that works with the given compiler.
-if GL_GENERATE_SYSEXITS_H
-sysexits.h: sysexits.in.h $(top_builddir)/config.status
-@NMD@  $(AM_V_GEN)$(MKDIR_P) '%reldir%'
-       $(gl_V_at)$(SED_HEADER_STDOUT) \
-             -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
-             -e 's|@''HAVE_SYSEXITS_H''@|$(HAVE_SYSEXITS_H)|g' \
-             -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
-             -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
-             -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
-             -e 's|@''NEXT_SYSEXITS_H''@|$(NEXT_SYSEXITS_H)|g' \
-             $(srcdir)/sysexits.in.h > $@-t
-       $(AM_V_at)mv $@-t $@
-else
-sysexits.h: $(top_builddir)/config.status
-       rm -f $@
-endif
-MOSTLYCLEANFILES += sysexits.h sysexits.h-t
 
 Include:
 <sysexits.h>
@@ -45,4 +23,3 @@ License:
 LGPLv2+
 
 Maintainer:
-Simon Josefsson
diff --git a/modules/sysexits-c++-tests b/modules/sysexits-c++-tests
deleted file mode 100644 (file)
index e937d82..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-Files:
-tests/test-sysexits-c++.cc
-
-Status:
-c++-test
-
-Depends-on:
-ansi-c++-opt
-
-configure.ac:
-
-Makefile.am:
-if ANSICXX
-TESTS += test-sysexits-c++
-check_PROGRAMS += test-sysexits-c++
-test_sysexits_c___SOURCES = test-sysexits-c++.cc
-endif
diff --git a/modules/sysexits-h b/modules/sysexits-h
new file mode 100644 (file)
index 0000000..384c9a2
--- /dev/null
@@ -0,0 +1,48 @@
+Description:
+Exit status codes for some BSD system programs.
+
+Files:
+lib/sysexits.in.h
+m4/sysexits.m4
+
+Depends-on:
+gen-header
+include_next
+stdlib-h
+
+configure.ac:
+gl_SYSEXITS
+gl_CONDITIONAL_HEADER([sysexits.h])
+AC_PROG_MKDIR_P
+
+Makefile.am:
+BUILT_SOURCES += $(SYSEXITS_H)
+
+# We need the following in order to create <sysexits.h> when the system
+# doesn't have one that works with the given compiler.
+if GL_GENERATE_SYSEXITS_H
+sysexits.h: sysexits.in.h $(top_builddir)/config.status
+@NMD@  $(AM_V_GEN)$(MKDIR_P) '%reldir%'
+       $(gl_V_at)$(SED_HEADER_STDOUT) \
+             -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
+             -e 's|@''HAVE_SYSEXITS_H''@|$(HAVE_SYSEXITS_H)|g' \
+             -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
+             -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
+             -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
+             -e 's|@''NEXT_SYSEXITS_H''@|$(NEXT_SYSEXITS_H)|g' \
+             $(srcdir)/sysexits.in.h > $@-t
+       $(AM_V_at)mv $@-t $@
+else
+sysexits.h: $(top_builddir)/config.status
+       rm -f $@
+endif
+MOSTLYCLEANFILES += sysexits.h sysexits.h-t
+
+Include:
+<sysexits.h>
+
+License:
+LGPLv2+
+
+Maintainer:
+Simon Josefsson
diff --git a/modules/sysexits-h-c++-tests b/modules/sysexits-h-c++-tests
new file mode 100644 (file)
index 0000000..6b57e70
--- /dev/null
@@ -0,0 +1,17 @@
+Files:
+tests/test-sysexits-h-c++.cc
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-sysexits-h-c++
+check_PROGRAMS += test-sysexits-h-c++
+test_sysexits_h_c___SOURCES = test-sysexits-h-c++.cc
+endif
diff --git a/modules/sysexits-h-tests b/modules/sysexits-h-tests
new file mode 100644 (file)
index 0000000..05d47c2
--- /dev/null
@@ -0,0 +1,11 @@
+Files:
+tests/test-sysexits-h.c
+
+Depends-on:
+sysexits-h-c++-tests
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-sysexits-h
+check_PROGRAMS += test-sysexits-h
diff --git a/modules/sysexits-tests b/modules/sysexits-tests
deleted file mode 100644 (file)
index e8de13a..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-Files:
-tests/test-sysexits.c
-
-Depends-on:
-sysexits-c++-tests
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-sysexits
-check_PROGRAMS += test-sysexits