Upgrade youtube-dl to version 2020.03.08
[sunny256-utils.git] / allrevs
blob9f26b5f33265fea22828ac82c7af90672315a285
1 #!/usr/bin/env bash
3 #=======================================================================
4 # allrevs
5 # File ID: 11dc9d90-5d37-11df-9afd-90e6ba3022ac
6 # Lagrer alle versjoner av en fil eller katalogstruktur i en annen
7 # katalog.
8 #=======================================================================
10 if [ "$2" = "" ]; then
11 cat <<END
13 Syntax: $0 file_or_dir directory_to_store_in
15 END
16 exit 1
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"
24 done