]> Savannah Git Hosting - gnulib.git/commitdiff
main.mk: remove sc_program_name
authorPino Toscano <ptoscano@redhat.com>
Thu, 18 Aug 2016 13:18:25 +0000 (15:18 +0200)
committerJim Meyering <meyering@fb.com>
Mon, 5 Sep 2016 16:21:54 +0000 (09:21 -0700)
There is no more need to use set_program_name in tools (getprogname
is enough for most of the cases).
* cfg.mk (local-checks-to-skip): Remove sc_program_name.
* top/maint.mk (sc_program_name): Remove.

ChangeLog
cfg.mk
top/maint.mk

index 3a2b2c96aa7eabaa037e76a89d1a69c79a07273c..b99af4e9f08e100681d31020758e75af678b625b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2016-08-18  Pino Toscano  <ptoscano@redhat.com>
+
+       main.mk: remove sc_program_name, since there is no more need to
+       use set_program_name in tools (getprogname is enough for most
+       of the cases).
+       * cfg.mk (local-checks-to-skip): Remove sc_program_name.
+       * top/maint.mk (sc_program_name): Remove.
+
 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
 
        Port tests away from progname, since modules that need the
diff --git a/cfg.mk b/cfg.mk
index 5b9456bdef0c131c73c62391a8e0b577e03d8210..75d932964a75dbb2438fff004201e936ecbbc7c3 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -27,7 +27,6 @@ local-checks-to-skip =                        \
   sc_makefile_at_at_check              \
   sc_makefile_path_separator_check     \
   sc_obsolete_symbols                  \
-  sc_program_name                      \
   sc_prohibit_HAVE_MBRTOWC             \
   sc_prohibit_S_IS_definition          \
   sc_prohibit_always_true_header_tests \
index 868e10f004f8770edf2e8d2a6f9e84f18f431e68..c32f8b6d0e66f7be0f13809aae82ee979e97a878 100644 (file)
@@ -716,15 +716,6 @@ sc_changelog:
        halt='found unexpected prefix in a ChangeLog'                   \
          $(_sc_search_regexp)
 
-# Ensure that each .c file containing a "main" function also
-# calls set_program_name.
-sc_program_name:
-       @require='set_program_name *\(.*\);'                            \
-       in_vc_files='\.c$$'                                             \
-       containing='\<main *('                                          \
-       halt='the above files do not call set_program_name'             \
-         $(_sc_search_regexp)
-
 # Ensure that each .c file containing a "main" function also
 # calls bindtextdomain.
 sc_bindtextdomain: