CMake: Remove FindSH.
authorGerald Combs <gerald@wireshark.org>
Tue, 6 Mar 2018 17:59:00 +0000 (09:59 -0800)
committerGerald Combs <gerald@wireshark.org>
Tue, 6 Mar 2018 18:00:42 +0000 (18:00 +0000)
We haven't used SH_EXECUTABLE since the Asciidoctor migration.

Change-Id: I93e8245ea02ed994ebb62942d5ea4ec890e35a97
Reviewed-on: https://code.wireshark.org/review/26277
Reviewed-by: Gerald Combs <gerald@wireshark.org>
cmake/modules/FindSH.cmake [deleted file]

diff --git a/cmake/modules/FindSH.cmake b/cmake/modules/FindSH.cmake
deleted file mode 100644 (file)
index a2aa2bc..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-#
-# - Find unix commands from cygwin
-# This module looks for some usual Unix commands.
-#
-
-include( FindCygwin )
-
-find_program( SH_EXECUTABLE
-  NAMES
-    bash
-  PATHS
-    ${CYGWIN_INSTALL_PATH}/bin
-    /bin
-    /usr/bin
-    /usr/local/bin
-    /sbin
-)
-
-include( FindPackageHandleStandardArgs )
-find_package_handle_standard_args( SH DEFAULT_MSG SH_EXECUTABLE )
-
-# Ensure this is Cygwin bash
-if( WIN32 AND CYGWIN_INSTALL_PATH )
-  execute_process( COMMAND ${SH_EXECUTABLE} --version OUTPUT_VARIABLE SH_VERSION )
-  string( FIND "${SH_VERSION}" "cygwin" SH_IS_CYGWIN )
-  if( ${SH_IS_CYGWIN} LESS 0 )
-      set( BAD_SH ${SH_EXECUTABLE} )
-      unset( SH_EXECUTABLE CACHE )
-      message( FATAL_ERROR "The bash executable (${BAD_SH}) isn't from Cygwin.  Check your path" )
-  endif()
-  set( SH_FLAGS1 -o )
-  set( SH_FLAGS2 igncr )
-endif()
-
-mark_as_advanced( SH_EXECUTABLE )
-