summaryrefslogtreecommitdiffstats
path: root/extras/vagrant
diff options
context:
space:
mode:
authorMarco Varlese <marco.varlese@suse.com>2017-09-22 17:53:53 +0200
committerChris Luke <chris_luke@comcast.com>2017-09-22 20:53:59 +0000
commitdc33d4ccb3712ab313f9d471cde35ef208aa0e29 (patch)
treeaeae86de5c0126d342638804ba723c12c61ffafa /extras/vagrant
parentb66201f76143391cc9b81d9c419919b9fd914a24 (diff)
openSUSE build fix
* Fixed package dependency * Fixed bash unary operation error Change-Id: I782dda8ffd807931241fa6034c110f5fedbeca8e Signed-off-by: Marco Varlese <marco.varlese@suse.com>
Diffstat (limited to 'extras/vagrant')
-rwxr-xr-xextras/vagrant/build.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/extras/vagrant/build.sh b/extras/vagrant/build.sh
index 34873f96eae..fcfd52aa707 100755
--- a/extras/vagrant/build.sh
+++ b/extras/vagrant/build.sh
@@ -72,12 +72,14 @@ fi
# Build and install packaging
$SUDOCMD make bootstrap
-if [ $DISTRIB_ID == "Ubuntu" ]; then
+if [ "$DISTRIB_ID" == "Ubuntu" ]; then
$SUDOCMD make pkg-deb
-elif [ $DISTRIB_ID == "debian" ]; then
+elif [ "$DISTRIB_ID" == "debian" ]; then
$SUDOCMD make pkg-deb
-elif [ $DISTRIB_ID == "CentOS" ]; then
+elif [ "$DISTRIB_ID" == "CentOS" ]; then
(cd $VPP_DIR/vnet ;$SUDOCMD aclocal;$SUDOCMD automake -a)
$SUDOCMD make pkg-rpm
+elif [ "$DISTRIB_ID" == "opensuse" ]; then
+ $SUDOCMD make build-release
fi