summaryrefslogtreecommitdiffstats
path: root/snapcraft/scripts
diff options
context:
space:
mode:
authorMartin Winter <mwinter@opensourcerouting.org>2017-04-28 08:41:04 +0200
committerMartin Winter <mwinter@opensourcerouting.org>2017-04-28 10:48:51 +0200
commit8ccfe8f8752a34ad3a1c85f0d29992de666a9c03 (patch)
tree708ba90ad7e818f22c11660ab27d6cf7e45e374a /snapcraft/scripts
parentsnapcraft: Fix missing files in "make dist" target (diff)
downloadfrr-8ccfe8f8752a34ad3a1c85f0d29992de666a9c03.tar.xz
frr-8ccfe8f8752a34ad3a1c85f0d29992de666a9c03.zip
snapcraft: Add support for extra version information
- frr.version snap command will now show the contents of extra_version_info.txt in addition to the zebra --version output Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Diffstat (limited to 'snapcraft/scripts')
-rw-r--r--snapcraft/scripts/Makefile2
-rw-r--r--snapcraft/scripts/show_version6
2 files changed, 8 insertions, 0 deletions
diff --git a/snapcraft/scripts/Makefile b/snapcraft/scripts/Makefile
index 2a60d4d65..966623d11 100644
--- a/snapcraft/scripts/Makefile
+++ b/snapcraft/scripts/Makefile
@@ -13,3 +13,5 @@ install:
install -D -m 0755 ldpd-service $(DESTDIR)/bin/
install -D -m 0755 nhrpd-service $(DESTDIR)/bin/
install -D -m 0755 set-options $(DESTDIR)/bin/
+ install -D -m 0755 show_version $(DESTDIR)/bin/
+
diff --git a/snapcraft/scripts/show_version b/snapcraft/scripts/show_version
new file mode 100644
index 000000000..ca1c2aa28
--- /dev/null
+++ b/snapcraft/scripts/show_version
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+$SNAP/sbin/zebra --version
+$SNAP/bin/cat $SNAP/doc/extra_version_info.txt
+
+exit 0