From 832823d1e3c6589c29b85df53d1e7121df530ffc Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 12 May 2021 12:35:21 +0200 Subject: [PATCH] gnulib-tool: Fail properly if the 'join' program is not found. Reported by Simon Josefsson in . * gnulib-tool: Bail out early of the 'join' program is not found. --- ChangeLog | 7 +++++++ gnulib-tool | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/ChangeLog b/ChangeLog index 314ba87c62..0a1f3cc076 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2021-05-12 Bruno Haible + + gnulib-tool: Fail properly if the 'join' program is not found. + Reported by Simon Josefsson in + . + * gnulib-tool: Bail out early of the 'join' program is not found. + 2021-05-09 Bruno Haible {realloc,calloc}-gnu: Fix autoconf macro (regression 2021-04-18). diff --git a/gnulib-tool b/gnulib-tool index 182b9b4a4e..9b5c81529c 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -888,6 +888,15 @@ func_hardlink () } } +# The 'join' program does not exist on all platforms. Where it exists, +# we can use it. Where not, bail out. +if (type join) >/dev/null 2>&1; then + : +else + echo "$progname: 'join' program not found. Consider installing GNU coreutils." >&2 + func_exit 1 +fi + # Ensure an 'echo' command that # 1. does not interpret backslashes and # 2. does not print an error message "broken pipe" when writing into a pipe -- 2.39.5