mksnap_setdate() { ( # Must pass the .tar.gz form of the name version=$1 shift cd $SNAPDIR date=$(svn log --xml -r $version $SVN 2> /dev/null \ | sed -n -e 's/\(.*\)<\/date>/\1/p') for file in "$@"; do touch -d "${date%T*} ${date#*T}" ${file} done ) }