aboutsummaryrefslogtreecommitdiff
blob: fb982a9893986ab1ccdc50c478b53dc064a02b11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# Copyright 2012-2015 Gentoo Foundation; Distributed under the GPL v2

# this is ugly and I don't like it

if [[ $HOSTNAME == TODO ]]; then
	/bin/date -u +'%s %a, %d %b %Y %H:%M:%S %z' > \
		/var/tmp/gmirror/experimental/.timestamp-experimental.x
	/bin/date -u +'%s %a, %d %b %Y %H:%M:%S %z' > \
		/var/tmp/gmirror/releases/.timestamp-releases.x
fi
if [[ $HOSTNAME == dipper ]]; then
	/bin/date -u +'%s %a, %d %b %Y %H:%M:%S %z' > \
		/var/tmp/gmirror-releases/experimental/.timestamp-experimental.x
	/bin/date -u +'%s %a, %d %b %Y %H:%M:%S %z' > \
		/var/tmp/gmirror-releases/releases/.timestamp-releases.x
fi