From 2d6251dfa495072b2f84e94be4dad2c6538a4896 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Wed, 16 Sep 2015 20:17:51 +0200 Subject: [PATCH] add trc6500 os version --- .gitignore | 1 + Makefile | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 210664f..577e17f 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ simple-cdd/dists/ simple-cdd/images/ trc6500-master-file/deb +master/etc/trc6500_os_version diff --git a/Makefile b/Makefile index 907021c..87c5d90 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ SHELL=/bin/bash MASTERFILE = trc6500-master-file -VERSION = $(shell awk '/^$(MASTERFILE)/ {gsub(/[()]/, ""); print $$2; exit}' $(MASTERFILE)/debian/debian-changelog) +VERSION = $(shell awk '/^$(MASTERFILE)/ {gsub(/[()]/, ""); print $$2; exit}' $(MASTERFILE)/changelog) ISOVER = $(shell echo $(VERSION) | sed 's/-.*$$//') @@ -20,6 +20,7 @@ $(TARGET_ISO): $(ISO) mv $< $@ $(ISO): $(TARGET_DEB) + echo $(ISOVER) > master/etc/trc6500_os_version cd simple-cdd && build-simple-cdd --dist wheezy --conf ./simple-cdd.conf masterfile: $(TARGET_DEB) -- 2.30.2