parse correct timestamp from retrieved binary (repro build fix)

This commit is contained in:
scgbckbone 2022-11-23 15:57:31 +01:00 committed by doc-hex
parent 3ad740fdfe
commit 56c2077174

View File

@ -47,6 +47,11 @@ else
fi
cd ../stm32
if [ -z "$SOURCE_DATE_EPOCH" ] && [ -n "$PUBLISHED_BIN" ]; then
DT=$(basename $PUBLISHED_BIN | cut -d "-" -f1,2,3)
export SOURCE_DATE_EPOCH=$(python -c 'import datetime, sys; sys.stdout.write(str(int(datetime.datetime.strptime(sys.argv[1], "%Y-%m-%dT%H%M").timestamp())))' "$DT")
fi
make setup
make all
make $TARGETS