summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 0000000..c221a28
--- /dev/null
+++ b/configure
@@ -0,0 +1,17 @@
+#!/bin/bash -e
+# Copyright (c) 2021, Dell Inc. or its subsidiaries. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+# See the LICENSE file for details.
+#
+# This file is part of NVMe STorage Appliance Services (nvme-stas).
+#
+# Authors: Martin Belanger <Martin.Belanger@dell.com>
+#
+BUILD_DIR="${BUILD_DIR:-.build}"
+
+if [ ! -d ${BUILD_DIR} ]; then
+ exec meson ${BUILD_DIR} "$@"
+else
+ exec meson configure ${BUILD_DIR} "$@"
+fi
+