3 #=======================================================================
5 # File ID: 11dc9d90-5d37-11df-9afd-90e6ba3022ac
6 # Lagrer alle versjoner av en fil eller katalogstruktur i en annen
8 #=======================================================================
10 if [ "$2" = "" ]; then
13 Syntax: $0 file_or_dir directory_to_store_in
19 [ -d "$2/." ] ||
{ echo "$2: Not a directory" >&2; exit 1; }
21 for f
in `svnrevs -r1:HEAD "$1" | tr -d , | zeropad`; do
22 echo ========= $f =======
23 svn
export -$f "$1" "$2/`echo $1 | tr / _`.$f"