Debian Codegraph @

scripts/download/mksnapfuncs

raw
1
2 mksnap_setdate() {
3 (
4 # Must pass the .tar.gz form of the name
5 version=$1
6 shift
7
8 cd $SNAPDIR
9 date=$(svn log --xml -r $version $SVN 2> /dev/null \
10 | sed -n -e 's/<date>\(.*\)<\/date>/\1/p')
11
12 for file in "$@"; do
13 touch -d "${date%T*} ${date#*T}" ${file}
14 done
15 )
16 }
17