From 8c90bd263a620c340589c4b8019f188ea62223e9 Mon Sep 17 00:00:00 2001 From: Ed Warnicke Date: Mon, 19 Sep 2016 13:31:25 +0000 Subject: Start building rpms and debs in CI Change-Id: I880d6bb4848b9d0482c24eae1032d72c537a620e Signed-off-by: Ed Warnicke --- nsh-plugin/build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nsh-plugin/build.sh b/nsh-plugin/build.sh index 2acc331..81e75b8 100755 --- a/nsh-plugin/build.sh +++ b/nsh-plugin/build.sh @@ -32,5 +32,9 @@ autoreconf -i -f [ -d ${NSH_INSTALL_PREFIX} ] || mkdir -p ${NSH_INSTALL_PREFIX} cd build ../configure --prefix ${NSH_INSTALL_PREFIX} -make V=1 PATH=${PATH} +if [ $DISTRIB_ID == "CentOS" ]; then + make V=1 PATH=${PATH} pkg-rpm +elif [ $DISTRIB_ID == "Ubuntu" ]; then + make V=1 PATH=${PATH} pkg-deb +fi ${SUDOCMD-sudo} make PATH=${PATH} install -- cgit 1.2.3-korg