aboutsummaryrefslogtreecommitdiffstats
path: root/nsh-plugin/build.sh
diff options
context:
space:
mode:
authorKeith Burns <alagalah@gmail.com>2016-06-21 11:34:28 +0000
committerGerrit Code Review <gerrit@fd.io>2016-06-21 11:34:28 +0000
commitcbc677c2de41cb3ecf4d40521995335db5cb1a71 (patch)
tree87b12ec868fa663a3df910514db2fe392a0aa636 /nsh-plugin/build.sh
parenta72e5a1cb6637486794da3fbcdd728d5e37fb5ff (diff)
parentea158d46051c9f2d10dfd15895dc96cd2240de5a (diff)
Merge "Have verify.sh use build.sh so verify checks user code path"
Diffstat (limited to 'nsh-plugin/build.sh')
-rwxr-xr-xnsh-plugin/build.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/nsh-plugin/build.sh b/nsh-plugin/build.sh
index 613a136..4a8c3d1 100755
--- a/nsh-plugin/build.sh
+++ b/nsh-plugin/build.sh
@@ -1,7 +1,11 @@
#!/usr/bin/env bash
+NSH_PLUGIN_DIR=$(dirname $0)
+NSH_INSTALL_PREFIX=${NSH_INSTALL_PREFIX:-/usr}
+cd ${NSH_PLUGIN_DIR}
autoreconf -i -f
[ -d build ] || mkdir build
+[ -d ${NSH_INSTALL_PREFIX} ] || mkdir -p ${NSH_INSTALL_PREFIX}
cd build
-../configure --prefix /usr
+../configure --prefix ${NSH_INSTALL_PREFIX}
make
sudo make install