aboutsummaryrefslogtreecommitdiffstats
path: root/nsh-plugin/build.sh
diff options
context:
space:
mode:
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