diff options
author | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2010-05-23 15:29:25 +0200 |
---|---|---|
committer | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2010-05-23 16:44:10 +0200 |
commit | cc43aab4af3c4b1b3428938f73ea1aa241a48f69 (patch) | |
tree | 9d125a10a0003327c5291905a56447f5eafce2ae /lib/gnupload | |
parent | 6491203472057e9314bf654d3874a21b80771ea0 (diff) | |
download | automake-cc43aab4af3c4b1b3428938f73ea1aa241a48f69.tar.gz |
Make gnupload portable to EBCDIC hosts.
* lib/gnupload: Use literal newline as argument for 'tr' rather
than \015, for EBCDIC hosts. Also, avoid unportable nested
double-quotes and backquotes.
* THANKS: Update.
Report from Eric Blake and Steve Goetze via gnulib.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Diffstat (limited to 'lib/gnupload')
-rwxr-xr-x | lib/gnupload | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/gnupload b/lib/gnupload index d44507538..5036752ca 100755 --- a/lib/gnupload +++ b/lib/gnupload @@ -1,7 +1,7 @@ #!/bin/sh # Sign files and upload them. -scriptversion=2010-02-08.07; # UTC +scriptversion=2010-05-23.15; # UTC # Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software # Foundation, Inc. @@ -32,6 +32,8 @@ delete_files= delete_symlinks= collect_var= dbg= +nl=' +' usage="Usage: $0 [OPTION]... [CMD] FILE... [[CMD] FILE...] @@ -109,7 +111,8 @@ Send patches to <automake-patches@gnu.org>." # Read local configuration file if test -r "$conffile"; then echo "$0: Reading configuration file $conffile" - eval set x "`sed 's/#.*$//;/^$/d' \"$conffile\" | tr '\012\015' ' '` \"\$@\"" + conf=`sed 's/#.*$//;/^$/d' "$conffile" | tr "\015$nl" ' '` + eval set x "$conf \"\$@\"" shift fi |