#!/bin/sh # # ========================================================================= # File: svn-changed # # Copyright 2004 Josh Glover # # LICENCE: # # This file is distributed under the terms of the BSD License (version # 2). See the COPYING file, which should have been distributed with this # file, for details. If you did not receive the COPYING file, see: # # http://www.jmglov.net/opensource/licenses/bsd.txt # # DESCRIPTION: # # Shows the files that changed in a certain revision. # # USAGE: # # svn-changed # # EXAMPLES: # # *** # # DEPENDENCIES: # # Awk # /bin/sh # grep # Subversion # # MODIFICATIONS: # # Josh Glover (2004/12/01): Initial revision # ========================================================================= rev=$1 let "prev = rev - 1" svn diff -r $prev:$rev | grep '^Index:' | awk '{ print $2 }'