summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRaphaël Hertzog <hertzog@debian.org>2016-12-02 15:21:50 +0100
committerRaphaël Hertzog <hertzog@debian.org>2016-12-02 15:23:20 +0100
commitb8f7f19015055fc4c7ef30e3787721ac2218ed3b (patch)
tree6f2bc8be3148f843545d986a543b7bf2ea526aa5 /Makefile
parent7ad6c408e559a1755beb63db8186e002a56bb7a7 (diff)
downloadvyos-live-build-b8f7f19015055fc4c7ef30e3787721ac2218ed3b.tar.gz
vyos-live-build-b8f7f19015055fc4c7ef30e3787721ac2218ed3b.zip
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
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