X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=build-aux%2Fgnupload;h=edb4b56bb55b6ce2b6a60e17579b5521ba6a9ebb;hb=0e67d73886e2b78415e81e8a61995b7b214a7782;hp=511070aa729056f4438dea3448ac5e282504ba5a;hpb=c8acf2dc429c96793cbb3fca726c45b6ad309944;p=gnulib.git diff --git a/build-aux/gnupload b/build-aux/gnupload index 511070aa7..edb4b56bb 100755 --- a/build-aux/gnupload +++ b/build-aux/gnupload @@ -1,10 +1,10 @@ #!/bin/sh # Sign files and upload them. -scriptversion=2010-02-06.18; # UTC +scriptversion=2010-05-23.15; # UTC # Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software -# Foundation +# Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -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 ." # 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 @@ -185,7 +188,7 @@ done dprint() { - echo "Running $*..." + echo "Running $* ..." } if $dry_run; then @@ -249,7 +252,7 @@ echo if test $# -ne 0; then for file do - echo "Signing $file..." + echo "Signing $file ..." rm -f $file.sig echo "$passphrase" | $dbg $GPG --passphrase-fd 0 -ba -o $file.sig $file done @@ -388,7 +391,7 @@ for dest in $to do for file do - echo "Uploading $file to $dest..." + echo "Uploading $file to $dest ..." stmt= files="$file $file.sig" destdir=`echo $dest | sed 's/[^:]*://'`