#!/bin/bash # # svnlast.sh - simple helper for showing the svn activity of the last N days # Copyright (C) 2008 Clifford Wolf # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or if [ "$#" -lt 1 ] || ! [[ "$1" == [0-9]* ]]; then echo "Usage: $0 {number-of-days} [svn log options]" >&2 exit 1 fi days="$1" shift exec svn log -rHEAD:{`date -d -${days}days '+%Y-%m-%d'`} "$@"