File: mksnapfuncs

package info (click to toggle)
mkgmap 0.0.0%2Bsvn4905-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 12,032 kB
  • sloc: java: 73,856; xml: 1,695; python: 713; sh: 240; makefile: 149; perl: 31
file content (17 lines) | stat: -rw-r--r-- 274 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

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
)
}