]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Convert mailnotify headers to git.
authorGary V. Vaughan <gary@gnu.org>
Sat, 6 Sep 2008 19:50:40 +0000 (03:50 +0800)
committerGary V. Vaughan <gary@gnu.org>
Sat, 6 Sep 2008 19:50:40 +0000 (03:50 +0800)
* clcommit.m4sh: Improve mailnotify contents.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
ChangeLog
clcommit.m4sh

index b79c99b8190c0ad2b5daa9f30c18f86241b02352..4ac84b90e3c34ae5dba5914871c14e234a85e2fe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2008-09-07  Gary V. Vaughan  <gary@gnu.org>
 
+       Convert mailnotify headers to git.
+       * clcommit.m4sh: Improve mailnotify contents.
+
        Make ./commit useful again.
        * clcommit.m4sh: Major overhaul and simplification for git.
 
index 0b5db95c83e5dba5e5672e75969bc71a8e7e8c41..0ee3b19543ee20817ca9298d2d21d32bcbb1197d 100644 (file)
@@ -207,7 +207,7 @@ set -e
                        fi
                        # The funny quoting allows keeping one option per
                        # line in $rc_file:
-                       eval set dummy $(echo $(cat $rc_file) \\\${1+\"\\\$@\"})
+                       eval set dummy $(echo $(cat $rc_file) \${1+\"\$@\"})
                        shift
                        ;;
 
@@ -378,18 +378,13 @@ func_mailnotify ()
 
     {
       echo Subject: $subject
-      test -f '{arch}/=tagging-method' &&
-          echo "Tree version:  `$TLA tree-version`"
-      test -f CVS/Root &&
-          echo "CVSROOT:       `$SED -e 's,.*:,,g' CVS/Root`"
+      test -f .git/config &&
+          echo "Root:          `$SED -n 's,^   url = .*:\(.*\)$,\1,p' .git/config`"
       test -f $MKSTAMP &&
-          echo "TIMESTAMP:     `$SHELL $MKSTAMP .`"
-      test -f CVS/Repository &&
-          echo "Module name:   `cat CVS/Repository`"
-      test -f CVS/Tag &&
-          echo "Branch:                `$SED -e 's,^T,,;1q' CVS/Tag`"
-      test -f CVS/Root &&
-          echo "Changes by:    `$SED -e 's,^:[a-z]*:,,;s,:.*$,,g' CVS/Root`"
+          echo "Timestamp:     `$SHELL $MKSTAMP .`"
+      echo "Branch:            `$GIT branch | sed -n 's/\* //p'`"
+      test -f .git/config &&
+          echo "Changes by:    `$SED -n 's,^   url = \([^:]*\):.*$,\1,p' .git/config`"
       echo ""
       echo "Log Message:"
       $SED -e 's,^,    ,' "$log_file"
@@ -442,7 +437,7 @@ func_mailnotify ()
     func_commit ${1+"$@"}
   fi
 
-  subject="$summary ["`$GIT branch | sed -n 's/\* //p'`"]"
+  subject=`sed -n '1p' "$log_file"`
 
   # Send a copy of the log_file if sendmail_to was set:
   if test -n "$sendmail_to"; then