runVSCode.sh 330 B

1234567891011121314151617
  1. #!/bin/bash
  2. #
  3. # this script sets the proper build/runtime
  4. # environment before opening poco in vscode
  5. self="${BASH_SOURCE[0]}"
  6. if [ -d "$self" ] ; then
  7. basedir="$(cd "$self" || exit; pwd -P)"
  8. else
  9. basedir="$(cd "$(dirname "$self")" || exit; pwd -P)"
  10. fi
  11. # shellcheck disable=SC1091
  12. . "$basedir"/poco_env.bash
  13. code "$basedir"