- Timestamp:
- Dec 27, 2009, 5:43:50 AM (15 years ago)
- Location:
- trunk/locker/sbin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/locker/sbin/commit-email.pl
r719 r1400 1 1 #!/usr/bin/env perl 2 3 # ==================================================================== 4 # This script is deprecated. The Subversion developers recommend 5 # using mailer.py for post-commit and post-revprop change 6 # notifications. If you wish to improve or add features to a 7 # post-commit notification script, please do that work on mailer.py. 8 # See http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/mailer . 9 # ==================================================================== 2 10 3 11 # ==================================================================== … … 10 18 # This script requires Subversion 1.2.0 or later. 11 19 # 12 # $HeadURL: http://svn.collab.net/repos/svn/trunk/ tools/hook-scripts/commit-email.pl.in $13 # $LastChangedDate: 200 8-04-01 13:19:34 -0400 (Tue, 01 Apr 2008) $14 # $LastChangedBy: glasser $15 # $LastChangedRevision: 3 0158$20 # $HeadURL: http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/commit-email.pl.in $ 21 # $LastChangedDate: 2009-05-12 13:25:35 -0400 (Tue, 12 May 2009) $ 22 # $LastChangedBy: blair $ 23 # $LastChangedRevision: 37715 $ 16 24 # 17 25 # ==================================================================== … … 558 566 my @head; 559 567 my $formatted_date; 560 if ( defined$stdout)568 if ($stdout) 561 569 { 562 570 $formatted_date = strftime('%a %b %e %X %Y', localtime()); … … 753 761 } 754 762 755 my $openfork_available = $^O ne "MSWin32"; 763 my $openfork_available = $^O ne "MSWin32"; 756 764 if ($openfork_available) # We can fork on this system. 757 765 { … … 769 777 } 770 778 } 771 else # Running on Windows. No fork. 779 else # Running on Windows. No fork. 772 780 { 773 781 my @commandline = (); 774 782 my $arg; 775 783 776 784 while ($arg = shift) 777 785 { … … 780 788 push(@commandline, $arg); 781 789 } 782 790 783 791 # Now do the pipe. 784 792 open(SAFE_READ, "@commandline |") -
trunk/locker/sbin/commit-zephyr
r748 r1400 1 #!/bin/sh 1 #!/bin/bash 2 # 3 # This is a script that can be called from a Subversion post-commit hook 4 # to zephyr a summary of the commit or the full commit. 5 # 6 # Use by putting something like the following in hooks/post-commit: 7 # REPOS="$1" 8 # REV="$2" 9 # /mit/snippets/svn-hooks/commit-zephyr "$REPOS" "$REV" -c scripts 10 # /mit/snippets/svn-hooks/commit-zephyr "$REPOS" "$REV" --full -c scripts-auto -i commits 2 11 3 CLASS=scripts 12 export LC_ALL=en_US.UTF-8 13 14 CLASS=test 4 15 INSTANCE=@ 5 16 FULL=0 … … 39 50 echo svnlook diff "$REPOS" -r "$REV" 40 51 fi 41 ) | zwrite -d -c "$CLASS" -i "$INSTANCE" - s "r$REV - $dirs"52 ) | zwrite -d -c "$CLASS" -i "$INSTANCE" -O "auto" -s "SVN: r$REV"
Note: See TracChangeset
for help on using the changeset viewer.