Calendar: add FT sprint
[tails/test.git] / bin / update-trace-time
blob64191d2f516f44cea6e41ea91757b0da82dea54a
1 #!/bin/bash
3 set -eu
4 set -x
6 error () {
7 echo "error: ${*}" >&2
8 exit 1
11 USAGE="Usage: $(basename "$0") MESSAGE"
13 [ $# -eq 1 ] || error "$USAGE"
15 MESSAGE="$1"
17 TRACE_TIME=$(date +%s)
19 echo "${TRACE_TIME:?}" \
20 | ssh rsync.lizard sudo tee /srv/rsync/tails/tails/project/trace
22 echo "${TRACE_TIME:?}" > "${MASTER_CHECKOUT:?}/wiki/src/inc/trace"
24 set -eux
25 cd "${MASTER_CHECKOUT:?}"
26 git commit wiki/src/inc/trace -m "$MESSAGE"
27 git push origin master