aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <Toni.Uhlig@tq-group.com>2017-11-28 16:36:17 +0100
committerToni Uhlig <Toni.Uhlig@tq-group.com>2017-11-28 16:36:17 +0100
commitc2231897f1df5556e1ca142349edc2c147fd30b2 (patch)
tree24de81940a770812d22ca646aece6f6075178f63
parent93a9beaba09346b580d16bb171fcb3fd21015710 (diff)
configure.ac: added '--disable-gui' to build a CLI only version
-rw-r--r--configure.ac9
-rwxr-xr-xcontrib/mock.py2
2 files changed, 5 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 66f9aa3..8bab124 100644
--- a/configure.ac
+++ b/configure.ac
@@ -36,12 +36,11 @@ UTOOL_RELEASE=${utool_major_version_number}.${utool_minor_version_number}
UTOOL_VERSION=${UTOOL_RELEASE}.${utool_release_number}
AC_ARG_ENABLE([gui],
- [AS_HELP_STRING([--enable-gui], [Build the UpdateTool with a wxWidgets based GUI instead of a simple CLI (default enabled).])],,
- [ut_buildgui=yes])
+ [AS_HELP_STRING([--disable-gui], [Build the UpdateTool with a wxWidgets based GUI instead of a simple CLI (default enabled).])],,[ut_buildgui=yes])
ut_buildgui=$(echo ${ut_buildgui})
case ${ut_buildgui} in
- ''|1|y|yes) ut_buildgui=yes ;;
- no) ut_buildgui= ;;
+ 1|y|yes) ut_buildgui=yes ;;
+ ''|0|n|no) ut_buildgui= ;;
*) AC_MSG_ERROR([unknown option '${ut_buildgui}' for --enable-gui]) ;;
esac
@@ -51,7 +50,7 @@ AC_ARG_ENABLE([host-wxwidgets],
enable_host_wxwidgets=$(echo ${enable_host_wxwidgets})
case ${enable_host_wxwidgets} in
''|1|y|yes) enable_host_wxwidgets=yes ;;
- no) enable_host_wxwidgets= ;;
+ 0|n|no) enable_host_wxwidgets= ;;
*) AC_MSG_ERROR([unknown option '${enable_host_wxwidgets}' for --enable-host-wxwidgets]) ;;
esac
if test x"${ut_buildgui}" != x"yes"; then
diff --git a/contrib/mock.py b/contrib/mock.py
index 8776b51..b1aa267 100755
--- a/contrib/mock.py
+++ b/contrib/mock.py
@@ -67,9 +67,9 @@ if __name__ == '__main__':
listen_adr = argv[2]
except IndexError:
listen_adr = '127.0.0.1'
- print 'Listen Address:', listen_adr
try:
listen_port = argv[3]
except IndexError:
listen_port = 80
+ print 'Listen Address:', listen_adr + ':' + str(listen_port)
run(host=listen_adr, port=listen_port)