Rev 2237 | Blame | Compare with Previous | Last modification | View Log | RSS feed
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>\(.*\)<\/date>/\1/p')
for file in "$@"; do
touch -d "${date%T*} ${date#*T}" ${file}
done
)
}