libtool-patches
[Top][All Lists]
Advanced

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

FYI: synch clcommit.m4sh and mailnotify.m4sh with cvs-utils--tla--1.0 [l


From: Gary V. Vaughan
Subject: FYI: synch clcommit.m4sh and mailnotify.m4sh with cvs-utils--tla--1.0 [libtool--release--2.0--patch-38]
Date: Fri, 22 Oct 2004 12:47:26 +0100 (BST)
User-agent: mailnotify/0.5

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

Applied to branch-2-0.

  * looking for address@hidden/libtool--release--2.0--patch-37 to compare with
  * comparing to address@hidden/libtool--release--2.0--patch-37
  M  ChangeLog
  M  clcommit.m4sh
  M  config/mailnotify.m4sh
  
  * modified files
  
  Index: Changelog
  from  Gary V. Vaughan  <address@hidden>
        * clcommit.m4sh, config/mailnotify.m4sh: Updated from
        cvs-utils--tla--1.0 to fix quoting of metachars in patch names.
  
  --- orig/clcommit.m4sh
  +++ mod/clcommit.m4sh
  @@ -2,7 +2,7 @@
   m4_divert_push([SCRIPT])#!/bin/sh
   # @configure_input@
   
  -# clcommit (GNU @PACKAGE@) version 0.12
  +# clcommit (GNU @PACKAGE@) version 0.13
   # Written by Gary V. Vaughan <address@hidden>
   # and Alexandre Oliva <address@hidden>
   
  @@ -76,7 +76,6 @@
   : ${MAILNOTIFY="mailnotify"}
   : ${MKSTAMP="mkstamp"}
   
  -test -f "config/$MAILNOTIFY" && MAILNOTIFY="config/MAILNOTIFY"
   test -f "config/$MKSTAMP" && MKSTAMP="config/$MKSTAMP"
   
   PROGRAM=clcommit
  @@ -100,7 +99,7 @@
   sendmail_to=
   exit_cmd=:
   
  -# Locations for important files
  +# Locations for important files:
   signature_file=
   log_file="${TMPDIR-/tmp}/$progname-$$"
   
  @@ -134,7 +133,8 @@
         -f|--force)    opt_update=false; PAGER=cat             ;;
   
         --from)                test $# = 0 && func_missing_arg $opt && break
  -                     mailnotify_flags="$mailnotify_flags --from '"$1"'"
  +                             func_quote_for_eval "$1"
  +                     mailnotify_flags="$mailnotify_flags 
--from=$func_quote_for_eval_result"
                        shift
                        ;;
   
  @@ -185,7 +185,8 @@
         -q|--quiet)    cvs_flags="$cvs_flags -q"               ;;
   
         -s|--sendmail) test $# = 0 && func_missing_arg $opt && break
  -                             sendmail_to="$1"
  +                             func_quote_for_eval "$1"
  +                             sendmail_to="$func_quote_for_eval_result"
                        shift
                        ;;
   
  @@ -426,8 +427,10 @@
       echo "$my_mail_body" > "$notify_file"
   
       func_verbose "mailing commit notification to \"$sendmail_to\""
  -    eval func_verbose_eval $MAILNOTIFY $mailnotify_flags -s 
"'$my_mail_subject'" \
  -        -m "text/plain" -f "$notify_file" -- "'$sendmail_to'"
  +    func_quote_for_eval "$my_mail_subject"
  +    func_show_eval "$MAILNOTIFY $mailnotify_flags \
  +        -s $func_quote_for_eval_result -m 'text/plain' -f '$notify_file' \
  +     -- $sendmail_to"
   }
   
   
  
  
  --- orig/config/mailnotify.m4sh
  +++ mod/config/mailnotify.m4sh
  @@ -2,7 +2,7 @@
   m4_divert_push([SCRIPT])#!/bin/sh
   # @configure_input@
   
  -# mailnotify (GNU @PACKAGE@) version 0.4
  +# mailnotify (GNU @PACKAGE@) version 0.5
   # Written by Gary V. Vaughan <address@hidden>
   
   # Copyright (C) 2004 Free Software Foundation, Inc.
  @@ -93,12 +93,14 @@
                        ;;
   
         -C|--carbon-copy) test $# -eq 0 && func_missing_arg "$opt" && break
  -                     cc="$1"
  +                     func_quote_for_eval "$1"
  +                     cc="$func_quote_for_eval_result"
                        shift
                        ;;
   
         -F|--from)     test $# -eq 0 && func_missing_arg "$opt" && break
  -                     from="$1"
  +                     func_quote_for_eval "$1"
  +                     from="$func_quote_for_eval_result"
                        shift
                        ;;
   
  @@ -133,12 +135,14 @@
                        ;;
   
         -o|--output-file)      test $# -eq 0 && func_missing_arg "$opt" && 
break
  -                     outputfile="$1"
  +                     func_quote_for_eval "$1"
  +                     outputfile="$func_quote_for_eval_result"
                        shift
                        ;;
   
         -s|--subject)  test $# -eq 0 && func_missing_arg "$opt" && break
  -                     subject="$1"
  +                     func_quote_for_eval "$1"
  +                     subject="$func_quote_for_eval_result"
                        shift
                        ;;
   
  @@ -206,10 +210,10 @@
       {
        echo "User-Agent: $PROGRAM/`$SED \"$my_sed_version_no\" < $progpath`"
        echo "MIME-Version: 1.0"
  -     test -n "$from" && echo "From: $from"
  -     echo "To: $my_destination"
  -     test -n "$cc" && echo "CC: $cc"
  -     test -n "$subject" && echo "Subject: $subject"
  +     test -n "$from" && eval echo From: $from
  +     eval echo To: $my_destination
  +     test -n "$cc" && eval echo CC: $cc
  +     test -n "$subject" && eval echo Subject: $subject
       } > "$my_outfile"
   }
   
  @@ -283,19 +287,24 @@
       my_destination="$2"
       my_from="$3"
   
  -    from_name=`echo "$my_from" | sed 's, *<.*> *$,,;s,",,g'`
  -    from_addr=`echo "$my_from" | sed "$sed_mail_address"`
  +    from_name=`eval echo "X$my_from" | $Xsed -e 's, *<.*> *$,,'`
  +    from_addr=`eval echo "X$my_from" | $Xsed -e "$sed_mail_address"`
  +
  +    save_PATH="$PATH"
  +    PATH="/usr/lib:/usr/sbin:$PATH"
   
       save_IFS="$IFS"
       IFS=':'
       for try_sendmail_dir in /usr/lib:/usr/sbin:$PATH; do
           IFS="$save_IFS"
  +     PATH="$save_PATH"
        if test -x "$try_sendmail_dir/$SENDMAIL"; then
            SENDMAIL="$try_sendmail_dir/$SENDMAIL"
            break
        fi
       done
       IFS="$save_IFS"
  +    PATH="$save_PATH"
       test -x "$SENDMAIL" || func_fatal_error "sendmail executable not found"
   
       func_verbose "Delivering mail, please wait..."
  @@ -324,14 +333,18 @@
     fname="${TMPDIR}/$PROGRAM$RANDOM-$RANDOM.$$"
     trap 'rm -f "$fname"; exit 1' 1 2 15
   
  +  # Generate a comma separated list of destination addresses for the
  +  # mail headers:
     destination=""
     for to in : ${1+"$@"}
     do
         test "X$to" = X: && continue
   
  +      func_quote_for_eval "$to"
  +
         case $destination in
  -       "") destination="$to" ;;
  -          *)  destination="$destination, $to" ;;
  +       "") destination="$func_quote_for_eval_result" ;;
  +          *)  destination="$destination, $func_quote_for_eval_result" ;;
         esac
     done
   
  @@ -342,14 +355,17 @@
         func_single_content "$fname"
     fi
   
  +  # Generate a space delimited list of destination addresses for sendmail:
     if test -z "$outputfile"; then
         destination=""
         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"
  +       func_quote_for_eval "$to"
  +
  +          to_addr=`echo "$func_quote_for_eval_result" | sed 
"$sed_mail_address"`
  +       test -n "$to_addr" || to_addr="$func_quote_for_eval_result"
          destination="$destination $to_addr"
         done
         func_sendmail "$fname" "$destination" "$from"
  
  
  
- -- 
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.9
http://tkd.kicks-ass.net/arch/address@hidden/cvs-utils--tla--1.0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFBePNNFRMICSmD1gYRAjtoAJ0fs+1QmSjrP0JTBGpqOOOCY8TQQwCfamFR
qd+AjhTMVAcgZ8gsFA1492c=
=g7jT
-----END PGP SIGNATURE-----




reply via email to

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