build: use pkg-config for i18n
[exim.git] / src / src / exiwhat.src
index 812f0b149e7dc0beda1ce04b780c15ff9b4dd8a6..9189080068c70fd399b141e92abbb8f194bb2977 100644 (file)
@@ -1,7 +1,9 @@
 #! /bin/sh
 
 #! /bin/sh
 
+# Copyright (c) The Exim Maintainers 2023
 # Copyright (c) University of Cambridge, 1995 - 2007
 # See the file NOTICE for conditions of use and distribution.
 # Copyright (c) University of Cambridge, 1995 - 2007
 # See the file NOTICE for conditions of use and distribution.
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 # Except when they appear in comments, the following placeholders in this
 # source are replaced when it is turned into a runnable script:
 
 # Except when they appear in comments, the following placeholders in this
 # source are replaced when it is turned into a runnable script:
@@ -40,7 +42,7 @@ rm=RM_COMMAND
 multikill_cmd=EXIWHAT_MULTIKILL_CMD
 multikill_arg=EXIWHAT_MULTIKILL_ARG
 
 multikill_cmd=EXIWHAT_MULTIKILL_CMD
 multikill_arg=EXIWHAT_MULTIKILL_ARG
 
-# In other operating systems, Exim has to use "ps" and "egrep" to find the
+# In other operating systems, Exim has to use "ps" and "grep" to find the
 # processes itself. In those cases, the next three variables are used:
 
 ps_cmd=EXIWHAT_PS_CMD
 # processes itself. In those cases, the next three variables are used:
 
 ps_cmd=EXIWHAT_PS_CMD
@@ -131,7 +133,7 @@ if [ "$multikill_cmd" != "" ] && type "$multikill_cmd" >/dev/null 2>&1; then
 
 else
   $ps_cmd $ps_arg | \
 
 else
   $ps_cmd $ps_arg | \
-    egrep "$egrep_arg" | \
+    grep -E "$egrep_arg" | \
     awk "{print \"kill $signal \"\$1}" | \
     uniq | sh
 fi
     awk "{print \"kill $signal \"\$1}" | \
     uniq | sh
 fi