Added COMMIT_TIMESTAMP_ISO_8601 as a Makefile parameter
This commit is contained in:
parent
7dcdca9649
commit
01ea5827b2
13
Makefile
13
Makefile
|
@ -1,17 +1,22 @@
|
||||||
|
####################################
|
||||||
|
# Makefile configuration variables #
|
||||||
|
OS_FILENAME = os.bat
|
||||||
|
BUILD_DIR = build
|
||||||
|
COMMIT_TIMESTAMP_ISO_8601 = $$(git log -1 --pretty=format:%ad --date=iso8601-strict)
|
||||||
|
####################################
|
||||||
|
|
||||||
MAKEFLAGS = --warn-undefined-variables
|
MAKEFLAGS = --warn-undefined-variables
|
||||||
SHELL = bash -euET -o pipefail -c
|
SHELL = bash -euET -o pipefail -c
|
||||||
.SECONDEXPANSION:
|
.SECONDEXPANSION:
|
||||||
|
|
||||||
OS_FILENAME = os.bat
|
|
||||||
os_filename = ${OS_FILENAME}
|
os_filename = ${OS_FILENAME}
|
||||||
BUILD_DIR = build
|
|
||||||
bld = ${BUILD_DIR}
|
bld = ${BUILD_DIR}
|
||||||
tests_emu = test/qemu-system-i386-floppy test/qemu-system-i386-cdrom test/qemu-system-arm test/virtualbox test/bochs test/gui-sh test/dosbox
|
tests_emu = test/qemu-system-i386-floppy test/qemu-system-i386-cdrom test/qemu-system-arm test/virtualbox test/bochs test/gui-sh test/dosbox
|
||||||
tests_requiring_sudo = test/fat12_mount test/iso_mount
|
tests_requiring_sudo = test/fat12_mount test/iso_mount
|
||||||
tests_noemu = test/zip test/os.reasm test/sizes test/fat12_contents test/reproducible_build
|
tests_noemu = test/zip test/os.reasm test/sizes test/fat12_contents test/reproducible_build
|
||||||
|
|
||||||
commit_timestamp = "$$(git log -1 --pretty=format:%ad --date=format:"%Y%m%d%H%m.%S")"
|
commit_timestamp = "$$(date -d "${COMMIT_TIMESTAMP_ISO_8601}" '+%Y%m%d%H%m.%S')"
|
||||||
commit_faketime = "$$(git log -1 --pretty=format:%ad --date=format:"%Y-%m-%d %H:%m:%S")"
|
commit_faketime = "$$(date -d "${COMMIT_TIMESTAMP_ISO_8601}" '+%Y-%m-%d %H:%m:%S')"
|
||||||
|
|
||||||
offset_names = bytes_os_size \
|
offset_names = bytes_os_size \
|
||||||
bytes_mbr_start \
|
bytes_mbr_start \
|
||||||
|
|
|
@ -57,7 +57,7 @@ install:
|
||||||
- cmd: echo TODO install gnu make and dependencies
|
- cmd: echo TODO install gnu make and dependencies
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- cmd: make all
|
- cmd: make COMMIT_TIMESTAMP_ISO_8601="%APPVEYOR_REPO_COMMIT_TIMESTAMP%" all
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- cmd: cmd /C os.bat exit
|
- cmd: cmd /C os.bat exit
|
||||||
|
|
Loading…
Reference in New Issue
Block a user