From bd73bf990a27c20c2746e3198a6662d2d38edcc8 Mon Sep 17 00:00:00 2001 From: Joanna Rutkowska Date: Mon, 5 Nov 2012 15:45:00 +0100 Subject: [PATCH] Automatic template versioning (#667) Use version no of the following form: $(version)-$(timestamp) --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f40f1d0..31eb570 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,8 @@ $(error "You must set DIST variable, e.g. DIST=fc14") endif TEMPLATE_NAME := $${DIST/fc/fedora-}-x64 -VERSION := $(shell cat version) +TIMESTAMP := $(shell date -u +%Y%m%d-%H%M) +VERSION := $(shell cat version)-$(TIMESTAMP) help: @echo "make rpms -- generate template rpm"