Only build packages, don't do a fresh make install afterward 62/3262/2
authorEd Warnicke <[email protected]>
Mon, 19 Sep 2016 17:34:35 +0000 (17:34 +0000)
committerEd Warnicke <[email protected]>
Tue, 4 Oct 2016 22:18:24 +0000 (22:18 +0000)
Change-Id: I395ed0991ea1a432f2e4d1d75b6dde45197434f3
Signed-off-by: Ed Warnicke <[email protected]>
Signed-off-by: Ed Warnicke <[email protected]>
nsh-plugin/build.sh

index 81e75b8..a737043 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env bash
-
+set -xe -o pipefail
 # Figure out what system we are running on
 if [ -f /etc/lsb-release ];then
     . /etc/lsb-release
@@ -33,8 +33,16 @@ autoreconf -i -f
 cd build
 ../configure --prefix ${NSH_INSTALL_PREFIX}
 if [ $DISTRIB_ID == "CentOS" ]; then
+    echo "Start building rpms"
     make V=1 PATH=${PATH} pkg-rpm
+    echo "Finished building rpms"
 elif [ $DISTRIB_ID == "Ubuntu" ]; then
+    echo "Start building debs"
     make V=1 PATH=${PATH} pkg-deb
+    echo "Finished building debs"
+else
+    echo "Not packing.  Start make install"
+    ${SUDOCMD-sudo} make PATH=${PATH} install
+    echo "Not packing.  Finished make install"
 fi
-${SUDOCMD-sudo} make PATH=${PATH} install
+