CVSROOT: logdiff.pl, loginfo -m option no longer required

arekm arekm at pld-linux.org
Tue Aug 23 21:27:06 CEST 2005


Author: arekm                        Date: Tue Aug 23 19:27:06 2005 GMT
Module: CVSROOT                       Tag: HEAD
---- Log message:
-m option no longer required

---- Files affected:
CVSROOT:
   logdiff.pl (1.41 -> 1.42) , loginfo (1.197 -> 1.198) 

---- Diffs:

================================================================
Index: CVSROOT/logdiff.pl
diff -u CVSROOT/logdiff.pl:1.41 CVSROOT/logdiff.pl:1.42
--- CVSROOT/logdiff.pl:1.41	Mon Jul 28 12:42:50 2003
+++ CVSROOT/logdiff.pl	Tue Aug 23 21:27:01 2005
@@ -256,8 +256,6 @@
 	    @ARGVX = $arg;
     }
 }
-($mailto) || die("No -m mail recipient specified\n");
-
 
 ## for now, the first "file" is the repository directory being committed,
 ## relative to the $CVSROOT location
@@ -295,7 +293,10 @@
         &do_changes_file($commitlog, @text);
     }
     
-    &mail_notification(@text);
+    if ($mailto)
+    {
+        &mail_notification(@text);
+    }
     exit 0;
 }
 
@@ -323,7 +324,10 @@
 	push(@text, "  ".$_);
     }
 
-    &mail_notification(@text);
+    if ($mailto)
+    {
+        &mail_notification(@text);
+    }
     exit 0;
 }    
 
@@ -558,7 +562,10 @@
 ##
 ## Mail out the notification.
 ##
-&mail_notification(@plain_txt);
+if ($mailto)
+{
+    &mail_notification(@plain_txt);
+}
 
 exit 0;
 # vim: ts=4 sw=4 et noai nosi cin

================================================================
Index: CVSROOT/loginfo
diff -u CVSROOT/loginfo:1.197 CVSROOT/loginfo:1.198
--- CVSROOT/loginfo:1.197	Tue Aug 23 19:26:17 2005
+++ CVSROOT/loginfo	Tue Aug 23 21:27:01 2005
@@ -24,7 +24,7 @@
 
 #DEFAULT		/cvsroot/CVSROOT/cvslog.pl %{sVv} $USER
 
-^SPECS		/cvsroot/CVSROOT/logdiff.pl -m pld-cvs-commit at pld-linux.org --distfiles dfadm at cvs-real.pld-linux.org --diffs --module SPECS --logfile commits.log %{sVv}
+^SPECS		/cvsroot/CVSROOT/logdiff.pl --distfiles dfadm at cvs-real.pld-linux.org --diffs --module SPECS --logfile commits.log %{sVv}
 
 ^cdg    /cvsroot/CVSROOT/cdg.sh %{sVv}
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/CVSROOT/logdiff.pl?r1=1.41&r2=1.42&f=u
    http://cvs.pld-linux.org/CVSROOT/loginfo?r1=1.197&r2=1.198&f=u




More information about the pld-cvs-commit mailing list