/[svn]/linux/svndiff/svndiff.sh

Contents of /linux/svndiff/svndiff.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16 - (show annotations) (download) (as text)
Thu May 11 17:53:11 2006 UTC (4 years, 2 months ago) by erik
File MIME type: application/x-sh
File size: 784 byte(s)
Changed the temporary file name to allow for directories.
1 #!/bin/sh
2
3 # svndiff -- svn diff with vimdiff.
4 #
5 # Written by Erik C. Thauvin (erik@thauvin.net)
6 # May 11, 2006
7 #
8 # Copyright (C) 2006 Erik C. Thauvin. All rights reserved.
9 #
10 # This software is provided "as is" without express or implied warranties.
11 #
12 # Permission is granted to use, copy, modify and distribute this software,
13 # provided this disclaimer and copyright are preserved on all copies. This
14 # software may not, however, be sold or distributed for profit, or included
15 # with other software which is sold or distributed for profit, without the
16 # permission of the author.
17 #
18 # $Id$
19
20 PROGNAME=`basename $0`
21
22 if [ $# != 1 ]
23 then
24 echo "Usage: $PROGNAME <file>"
25 exit 2
26 else
27 TEMP=/tmp/tmp.$$.`basename $1`
28 svn cat $1 > $TEMP
29 vimdiff $TEMP $1
30 rm -f $TEMP
31 fi

Properties

Name Value
svn:eol-style native
svn:keywords Date Revision Author URL Id

Mail
ViewVC Help
cvs.thauvin.net
svn.thauvin.net
Powered by ViewVC 1.2-dev