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/-.*$$//')
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)