summaryrefslogtreecommitdiffstats
path: root/extras/snap/prep
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2020-03-18 10:14:40 -0400
committerFlorin Coras <florin.coras@gmail.com>2020-03-18 16:14:52 +0000
commit6d97e62c009086030cddb38c5432c8f860b1c02c (patch)
treebbf3cad3b264e550b9d711339c07c2bd5922a411 /extras/snap/prep
parent6a32ce326495bfe48ebef74dfbb8a9c1cf37a530 (diff)
build: add snap packaging (experimental)
Type: feature Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I5a5efde5378f63d89d82d71ae009c7595aaa800c
Diffstat (limited to 'extras/snap/prep')
-rwxr-xr-xextras/snap/prep11
1 files changed, 11 insertions, 0 deletions
diff --git a/extras/snap/prep b/extras/snap/prep
new file mode 100755
index 00000000000..caabd85ccd6
--- /dev/null
+++ b/extras/snap/prep
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+set -eu
+
+cd ../../build-root
+echo "make distclean..."
+make distclean > /dev/null 2>&1
+cd ../
+echo "construct source tarball..."
+tar -zcf extras/snap/vpp.tgz --exclude=extras/snap/vpp.tgz .
+exit 0