diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-05-14 15:07:25 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-05-14 22:08:03 +0000 |
commit | 33c836af9fdad2c099966d9b9aee9c546d068f70 (patch) | |
tree | 6c9f84794b5a8fee14831c7a5707c3f350f51192 | |
parent | 548f7547fec8b2e8af4c52846b60ee9dbb6690d4 (diff) |
Builds require CMake, so always install it.
Don't have an option not to install it. (If we want to avoid installing
it when it's already been installed by something other than this script,
we should check for its existence before installing, and skip the
installation step for it.)
Get rid of the instructions for autotools builds; always show the
instructions for CMake builds.
We wouldn't get to the uninstall stage if it hadn't been installed by
this script; remove the comment asking about that.
Change-Id: I276ee96bf955ef4ff33dea87bc27c21111301ea0
Reviewed-on: https://code.wireshark.org/review/27540
Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rwxr-xr-x | tools/macos-setup.sh | 47 |
1 files changed, 12 insertions, 35 deletions
diff --git a/tools/macos-setup.sh b/tools/macos-setup.sh index 405773c5ac..41daa25e1f 100755 --- a/tools/macos-setup.sh +++ b/tools/macos-setup.sh @@ -12,10 +12,6 @@ shopt -s extglob # -# To install cmake -# -CMAKE=1 -# # To install autotools # AUTOTOOLS=1 @@ -352,7 +348,7 @@ uninstall_libtool() { } install_cmake() { - if [ -n "$CMAKE" -a ! -f cmake-$CMAKE_VERSION-done ]; then + if [ ! -f cmake-$CMAKE_VERSION-done ]; then echo "Downloading and installing CMake:" CMAKE_MAJOR_VERSION="`expr $CMAKE_VERSION : '\([0-9][0-9]*\).*'`" CMAKE_MINOR_VERSION="`expr $CMAKE_VERSION : '[0-9][0-9]*\.\([0-9][0-9]*\).*'`" @@ -1703,11 +1699,6 @@ install_all() { else echo "Requested CMake version is $CMAKE_VERSION" fi - # - # XXX - really remove this? - # Or should we remember it as installed only if this script - # installed it? - # uninstall_cmake -r fi @@ -2291,31 +2282,17 @@ fi echo "You are now prepared to build Wireshark." echo -if [[ $CMAKE ]]; then - echo "To build with CMAKE:" - echo - echo "export PKG_CONFIG_PATH=$pkg_config_path" - echo "export CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH" - echo "export PATH=$PATH:$qt_base_path/bin" - echo - echo "mkdir build; cd build" - echo "cmake .." - echo "make $MAKE_BUILD_OPTS app_bundle" - echo "make install/strip" - echo -fi -if [[ $AUTOTOOLS ]]; then - echo "To build with AUTOTOOLS:" - echo - echo "export PKG_CONFIG_PATH=$pkg_config_path" - echo - echo "./autogen.sh" - echo "mkdir build; cd build" - echo "../configure" - echo "make $MAKE_BUILD_OPTS" - echo "make install" - echo -fi +echo "To build:" +echo +echo "export PKG_CONFIG_PATH=$pkg_config_path" +echo "export CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH" +echo "export PATH=$PATH:$qt_base_path/bin" +echo +echo "mkdir build; cd build" +echo "cmake .." +echo "make $MAKE_BUILD_OPTS app_bundle" +echo "make install/strip" +echo echo "Make sure you are allowed capture access to the network devices" echo "See: https://wiki.wireshark.org/CaptureSetup/CapturePrivileges" echo |