Automatic template versioning (#667)

Use version no of the following form:
    $(version)-$(timestamp)
This commit is contained in:
Joanna Rutkowska 2012-11-05 15:45:00 +01:00
parent d076d60d0d
commit bd73bf990a

View File

@ -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"