From 6cbac4b4e075515e6d331f0c446293813f653b52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 28 Jun 2018 13:58:54 +0200 Subject: [PATCH] Rename TIMESTAMP variable to TEMPLATE_TIMESTAMP Make it explicit that it's about template. Allow setting it from the outside, to make predictable template version. QubesOS/qubes-issues#3935 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 847bb84..0022660 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ export TEMPLATE_SCRIPTS export DISTRIBUTION VERSION := $(shell cat version) -TIMESTAMP := $(shell date -u +%Y%m%d%H%M) +TEMPLATE_TIMESTAMP ?= $(shell date -u +%Y%m%d%H%M) .PHONY: help template-name prepare package rpms rootimg-build .PHONY: update-repo-templates-itl update-repo-templates-community @@ -48,7 +48,7 @@ template-name: prepare: @echo "Building template: $(TEMPLATE_NAME)" - @echo $(TIMESTAMP) > build_timestamp_$(TEMPLATE_NAME) + @echo $(TEMPLATE_TIMESTAMP) > build_timestamp_$(TEMPLATE_NAME) package: ./build_template_rpm $(TEMPLATE_NAME)