libtool-patches
[Top][All Lists]
Advanced

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

FYI: update config/mailnotify.m4sh from upstream [libtool--release--2.0-


From: Gary V. Vaughan
Subject: FYI: update config/mailnotify.m4sh from upstream [libtool--release--2.0--patch-30]
Date: Fri, 15 Oct 2004 18:31:11 +0100 (BST)
User-agent: mailnotify/0.4

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Applied to branch-2-0 and HEAD.

  * looking for address@hidden/libtool--release--2.0--patch-29 to compare with
  * comparing to address@hidden/libtool--release--2.0--patch-29
  M  ChangeLog
  M  config/mailnotify.m4sh
  
  * modified files
  
  Index: Changelog
  from  Gary V. Vaughan  <address@hidden>
  
        Update to the latest mailnotify script from
        address@hidden/cvs-utils--tla--1.0:
  
        * config/mailnotify.m4sh: Fix bugs in sendmail search and
        for loop invocations.
  
  --- orig/config/mailnotify.m4sh
  +++ mod/config/mailnotify.m4sh
  @@ -60,6 +60,7 @@
   
   : ${TMPDIR=/tmp}
   : ${HOST=`hostname`}
  +: ${SENDMAIL=sendmail}
   
   PROGRAM=mailnotify
   
  @@ -285,13 +286,17 @@
       from_name=`echo "$my_from" | sed 's, *<.*> *$,,;s,",,g'`
       from_addr=`echo "$my_from" | sed "$sed_mail_address"`
   
  -    SENDMAIL=sendmail
  -    for try_sendmail in sendmail /usr/lib/sendmail /usr/sbin/sendmail; do
  -     if which $try_sendmail >/dev/null 2>&1; then
  -         SENDMAIL=$try_sendmail
  +    save_IFS="$IFS"
  +    IFS=':'
  +    for try_sendmail_dir in /usr/lib:/usr/sbin:$PATH; do
  +        IFS="$save_IFS"
  +     if test -x "$try_sendmail_dir/$SENDMAIL"; then
  +         SENDMAIL="$try_sendmail_dir/$SENDMAIL"
            break
        fi
       done
  +    IFS="$save_IFS"
  +    test -x "$SENDMAIL" || func_fatal_error "sendmail executable not found"
   
       func_verbose "Delivering mail, please wait..."
       if test -n "$from_name"; then
  @@ -320,8 +325,10 @@
     trap 'rm -f "$fname"; exit 1' 1 2 15
   
     destination=""
  -  for to;
  +  for to in : ${1+"$@"}
     do
  +      test "X$to" = X: && continue
  +
         case $destination in
          "") destination="$to" ;;
             *)  destination="$destination, $to" ;;
  @@ -337,7 +344,10 @@
   
     if test -z "$outputfile"; then
         destination=""
  -      for to; do
  +      for to in : ${1+"$@"}
  +      do
  +          test "X$to" = X: && continue
  +
             to_addr=`echo "$to" | sed "$sed_mail_address"`
          test -n "$to_addr" || to_addr="$to"
          destination="$destination $to_addr"
  
  
  
- -- 
Gary V. Vaughan      ())_.  address@hidden,gnu.org}
Research Scientist   ( '/   http://tkd.kicks-ass.net
GNU Hacker           / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook
_________________________________________________________
This patch notification generated by tlaapply version 0.7
http://tkd.kicks-ass.net/arch/address@hidden/cvs-utils--tla--1.0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFBcAleFRMICSmD1gYRAn77AKCkxXf5WVzoc4xPPQCI5KSZ0eQ/BgCbBqsL
H/ukuQj865Jb1WEn9euw43Q=
=9E96
-----END PGP SIGNATURE-----




reply via email to

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