File: debchange

package info (click to toggle)
dgit 12.16
  • links: PTS, VCS
  • area: main
  • in suites: trixie-proposed-updates
  • size: 3,368 kB
  • sloc: perl: 13,443; sh: 6,466; python: 334; makefile: 324; tcl: 69
file content (17 lines) | stat: -rwxr-xr-x 335 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
set -e

spec=$(date --rfc-3339=seconds -d @"${GIT_AUTHOR_DATE% *}")
spec=${spec%+*}

# The nonsense with TZ is to work around #907264
tz_set=${TZ+set}
if ! test "$tz_set"; then tz_undef=-u; fi

set -x

exec \
env TZ=UTC \
faketime -f "$spec" \
env $tz_undef TZ${tz_set:+=}"$TZ" \
"${DGIT_TEST_REAL_DEBCHANGE-debchange}" "$@"