#!/bin/sh # # ========================================================================= # File: svn-gen-patch # # Copyright (c) 2005 and onwards, 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: # # Generates a patch with all of the changes from a certain revision. # # USAGE: # # svn-changed {} # # EXAMPLES: # # *** # # DEPENDENCIES: # # Awk # /bin/sh # grep # Subversion # # MODIFICATIONS: # # Josh Glover (2005/03/29): Initial revision # ========================================================================= while test -n "$1"; do rev=$1; shift let "prev = rev - 1" echo "Generating patch for revision ${rev}: ${rev}.patch" svn diff -r $prev:$rev >"${rev}.patch" || exit 1 done # while (generating patches)