[llvm-commits] CVS: CVSROOT/commit-diffs.pl
Chris Lattner
lattner at cs.uiuc.edu
Tue Sep 17 18:19:00 PDT 2002
Changes in directory CVSROOT:
commit-diffs.pl updated: 1.25 -> 1.26
---
Log message:
Hopefully enable commits from linux hosts
---
Diffs of the changes:
Index: CVSROOT/commit-diffs.pl
diff -u CVSROOT/commit-diffs.pl:1.25 CVSROOT/commit-diffs.pl:1.26
--- CVSROOT/commit-diffs.pl:1.25 Tue Sep 17 18:01:37 2002
+++ CVSROOT/commit-diffs.pl Tue Sep 17 18:18:21 2002
@@ -130,5 +130,12 @@
open TEMP, ">$TEMPFILE";
print TEMP $msg;
close TEMP;
-system("mailx -s 'CVS: $subject' $target < $TEMPFILE");
+
+# the mail sending program is called mailx on solaris, but mail on everything
+# else.
+if (uname()[0] == "SunOS") {
+ system("mailx -s 'CVS: $subject' $target < $TEMPFILE");
+} else {
+ system("mail -s 'CVS: $subject' $target < $TEMPFILE");
+}
unlink "$TEMPFILE";
More information about the llvm-commits
mailing list