From fb586ecffc730c4ab451936d4172086e673c931e Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 18 Mar 2017 18:50:17 +0100 Subject: configure: Move name and directory name into a variable for easier comparison with similar scripts --- configure | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'configure') diff --git a/configure b/configure index dbbd016c..8b403161 100755 --- a/configure +++ b/configure @@ -2,10 +2,12 @@ # Defaults +APP_NAME="Prosody" +APP_DIRNAME="prosody" PREFIX="/usr/local" -SYSCONFDIR="$PREFIX/etc/prosody" +SYSCONFDIR="$PREFIX/etc/$APP_DIRNAME" LIBDIR="$PREFIX/lib" -DATADIR="$PREFIX/var/lib/prosody" +DATADIR="$PREFIX/var/lib/$APP_DIRNAME" LUA_SUFFIX="" LUA_DIR="/usr" LUA_BINDIR="/usr/bin" @@ -29,19 +31,19 @@ IDN_LIBRARY="idn" show_help() { cat < /dev/null 2> /dev/null -- cgit v1.2.3