EXECUTE_PROCESS(COMMAND /bin/sh --help
  OUTPUT_VARIABLE ov_bin_sh_help
  RESULT_VARIABLE rv_bin_sh_help
  )

SET(PV_CAN_USE_BIN_SH 0)
IF("${rv_bin_sh_help}" STREQUAL "0")
  SET(PV_CAN_USE_BIN_SH 1)
ENDIF("${rv_bin_sh_help}" STREQUAL "0")

IF(PV_CAN_USE_BIN_SH)
  EXECUTE_PROCESS(COMMAND /bin/sh "@CMAKE_CURRENT_BINARY_DIR@/CreateBundle.sh")
  MESSAGE(STATUS "info: ran '@CMAKE_CURRENT_BINARY_DIR@/CreateBundle.sh'")
ELSE(PV_CAN_USE_BIN_SH)
  MESSAGE(FATAL_ERROR "error: could not use /bin/sh to call CreateBundle.sh")
ENDIF(PV_CAN_USE_BIN_SH)
