25 lines
560 B
Bash
Executable File
25 lines
560 B
Bash
Executable File
#!/bin/sh
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin;export PATH
|
|
|
|
(
|
|
URL="subdir=`dirname $1`&files=`basename $1`"
|
|
|
|
|
|
|
|
echo "Subject: $1"
|
|
echo 'Content-Type: text/html; charset=us-ascii'
|
|
echo 'Content-Transfer-Encoding: 7bit'
|
|
echo 'Content-Disposition: inline'
|
|
|
|
TMP=/tmp/cvsmf.$$
|
|
trap "rm -f $TMP" 0 1 2 15
|
|
cat > $TMP
|
|
BRANCH=`sed -n 's@^Revision/Branch: \(.*\)@\1@p' $TMP`
|
|
if test -n "$BRANCH"; then
|
|
URL="$URL&branch=$BRANCH"
|
|
fi
|
|
|
|
echo '<A HREF="http://warp.netscape.com/webtools/bonsai/cvsview2.cgi?'$URL'&command=DIRECTORY">View differences</A><BR>\n'
|
|
|
|
) | mail $2
|