File tree 3 files changed +19
-2
lines changed 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,15 @@ _VER="$1"
16
16
17
17
rm -r -f " ${_PKGDIR:? } " " ${_BLDDIR:? } "
18
18
19
+ readonly _ref=' CHANGES'
20
+
21
+ case " ${_HOST} " in
22
+ bsd|mac) unixts=" $( TZ=UTC stat -f ' %m' " ${_ref} " ) " ;;
23
+ * ) unixts=" $( TZ=UTC stat -c ' %Y' " ${_ref} " ) " ;;
24
+ esac
25
+
26
+ export SOURCE_DATE_EPOCH=" ${unixts} "
27
+
19
28
# Build
20
29
21
30
[ -f ' configure' ] || autoreconf --force --install
Original file line number Diff line number Diff line change @@ -19,6 +19,15 @@ _VER="$1"
19
19
20
20
[ " ${CW_DEV_INCREMENTAL:- } " != ' 1' ] && rm -r -f " ${_PKGDIR:? } " " ${_BLDDIR:? } "
21
21
22
+ readonly _ref=' CHANGES'
23
+
24
+ case " ${_HOST} " in
25
+ bsd|mac) unixts=" $( TZ=UTC stat -f ' %m' " ${_ref} " ) " ;;
26
+ * ) unixts=" $( TZ=UTC stat -c ' %Y' " ${_ref} " ) " ;;
27
+ esac
28
+
29
+ export SOURCE_DATE_EPOCH=" ${unixts} "
30
+
22
31
# Build
23
32
24
33
options=' '
Original file line number Diff line number Diff line change 8
8
{
9
9
# Make steps for determinism
10
10
11
- readonly _ref=' CHANGES'
12
-
13
11
# Show the reference timestamp in UTC.
12
+ # shellcheck disable=SC2154
14
13
case " ${_HOST} " in
15
14
bsd|mac) TZ=UTC stat -f ' %N: %Sm' -t ' %Y-%m-%d %H:%M' " ${_ref} " ;;
16
15
* ) TZ=UTC stat -c ' %n: %y' " ${_ref} " ;;
You can’t perform that action at this time.
0 commit comments