automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix nonportable sed script in 'missing'.


From: Ralf Wildenhues
Subject: Fix nonportable sed script in 'missing'.
Date: Sat, 13 Dec 2008 14:21:48 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Yeah, I actually had to stumble over this recently introduced buglet;
Tru64 sed interprets everything between the first 't' and newline/end
of script as a label, then complains about the label being longer than
6 characters.  :-/

(Of course this is all duly documented in the Autoconf manual section on
shell portability).

Pushed both branches.

Cheers,
Ralf

    Fix nonportable sed script in 'missing'.
    
    * lib/missing: In sed script, do not use ';' after 't' commands.

diff --git a/lib/missing b/lib/missing
index 4758c82..32e23d2 100755
--- a/lib/missing
+++ b/lib/missing
@@ -1,7 +1,7 @@
 #! /bin/sh
 # Common stub for a few missing GNU programs while installing.
 
-scriptversion=2008-11-24.07
+scriptversion=2008-12-13.14
 
 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
 # 2008  Free Software Foundation, Inc.
@@ -108,7 +108,10 @@ Send bug reports to <address@hidden>."
 esac
 
 # normalize program name to check for.
-program=`echo "$1" | sed 's/^gnu-//; t; s/^gnu//; t; s/^g//; t'`
+program=`echo "$1" | sed '
+  s/^gnu-//; t
+  s/^gnu//; t
+  s/^g//; t'`
 
 # Now exit if we have it, but it failed.  Also exit now if we
 # don't have it and --version was passed (most likely to detect




reply via email to

[Prev in Thread] Current Thread [Next in Thread]