Upgrade yt-dlp from version stable@2023.07.06 to stable@2023.09.24
[sunny256-utils.git] / svnsize
blob173711e81c7c49f29260d375961de2d80b49dccd
1 #!/usr/bin/env bash
3 # svnsize
4 # File ID: ed4bb18c-5d45-11df-9c60-90e6ba3022ac
5 # Lister ut fildato og størrelse for revisjonene i en fil i svn.
7 fil=$1
9 for f in `svnrevs -r1:HEAD $fil | tr -d ,`; do
10 date=`svn log --xml -$f $fil | perl -e '$a = join("", <>); $a =~ s/^.*<date>(.{19}).*?<\/date>.*$/$1/gs; print("${a}Z");'`
11 size=`svn ls -v -$f $fil | tr -s ' ' | rmspcall | cut -d ' ' -f 3`
12 echo "$date $size"
13 done