From b8f7f19015055fc4c7ef30e3787721ac2218ed3b Mon Sep 17 00:00:00 2001 From: Raphaƫl Hertzog Date: Fri, 2 Dec 2016 15:21:50 +0100 Subject: Fix version of live-build that is displayed by lb --version Now we generate the VERSION file at install time or at package build time. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4604af562..00b30357a 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,8 @@ build: install: # Installing shared data mkdir -p $(DESTDIR)/usr/share/live/build - cp -r data functions VERSION $(DESTDIR)/usr/share/live/build + cp -r data functions $(DESTDIR)/usr/share/live/build + sed -e 's/.*(\(.*\)).*/\1/; q' debian/changelog >$(DESTDIR)/usr/share/live/build/VERSION cp -r share/* $(DESTDIR)/usr/share/live/build # Installing executables -- cgit v1.2.3