Introduce install script (#3254)
author오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Fri, 19 Oct 2018 07:19:49 +0000 (16:19 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Fri, 19 Oct 2018 07:19:49 +0000 (16:19 +0900)
* Introduce install script

introduce install script
Howto:  On project root, "./run install" with environment variable setting

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Remove ambiguous comment

scripts/command/install [new file with mode: 0644]

diff --git a/scripts/command/install b/scripts/command/install
new file mode 100644 (file)
index 0000000..c6631ce
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+source "${NNFW_SCRIPT_PATH}/build.configuration"
+
+if [[ ! -d "${BUILD_ALIAS}" ]]; then
+  echo "'${BUILD_ALIAS}' does not exist. Please run 'configure' first"
+  exit 255
+fi
+
+if [[ ! -d "${INSTALL_ALIAS}" ]]; then
+  echo "'${INSTALL_ALIAS}' does not exist. Please run 'configure' first"
+  exit 255
+fi
+
+cd ${BUILD_ALIAS}
+make install