summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-23 23:40:21 -0400
committermidipix <writeonce@midipix.org>2016-11-11 00:22:39 -0500
commitee3e673e00f223376ac65832c375ccf4c0c91d28 (patch)
tree6a6c45d86530e5003b662dc056af6c07033a8c00 /configure
parentba4569f7471ceded6f10e775a508a1e39fcc036a (diff)
downloadmdso-ee3e673e00f223376ac65832c375ccf4c0c91d28.tar.bz2
mdso-ee3e673e00f223376ac65832c375ccf4c0c91d28.tar.xz
build system: added utility nickname support.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure b/configure
index 4145c3c..7151da3 100755
--- a/configure
+++ b/configure
@@ -33,6 +33,9 @@ init_vars()
mb_git_reference_dir="\$(PROJECT_DIR)/.git"
fi
+ # project
+ mb_nickname=$NICKNAME
+
# dirs
mb_prefix=$PREFIX
mb_exec_prefix=$EXEC_PREFIX
@@ -110,6 +113,9 @@ verify_build_directory()
common_defaults()
{
+ # project
+ [ -z "$mb_nickname" ] && mb_nickname=$mb_package
+
# dirs
[ -z "$mb_prefix" ] && [ -z "$mb_prefix_set" ] \
&& mb_prefix='/usr/local'
@@ -308,6 +314,7 @@ cross_defaults()
config_copy()
{
sed -e 's^@package@^'"$mb_package"'^g' \
+ -e 's^@nickname@^'"$mb_nickname"'^g' \
-e 's^@project_dir@^'"$mb_project_dir"'^g' \
-e 's^@git_reference_dir@^'"$mb_git_reference_dir"'^g' \
\
@@ -454,6 +461,12 @@ for arg ; do
--debug)
mb_debug='yes'
;;
+
+ # project
+ --nickname=*)
+ mb_nickname=${arg#*=}
+ ;;
+
*)
error_msg ${arg#}: "unsupported config argument."
exit 2