#!/bin/bash
# Sets up the shell environment to build QNX7.0 applications.
# Note that running this in an interactive/login shell may override things like default Python
#  installation; it is recommended to only run this in a sub-shell when possible.

if [ -z "$QNX7_INSTALL_ROOT" ]; then
  echo "QNX7_INSTALL_ROOT not set"
  return 1
fi

if [ ! -f "$QNX7_INSTALL_ROOT/qnxsdp-env.sh" ]; then
  echo "QNX7.0 environment file not found"
  return 1
fi

source "$QNX7_INSTALL_ROOT/qnxsdp-env.sh" > /dev/null

return 0
