mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 10:13:51 +01:00
18 lines
330 B
Bash
18 lines
330 B
Bash
|
#!/bin/bash
|
||
|
#
|
||
|
# this script sets the proper build/runtime
|
||
|
# environment before opening poco in vscode
|
||
|
|
||
|
self="${BASH_SOURCE[0]}"
|
||
|
|
||
|
if [ -d "$self" ] ; then
|
||
|
basedir="$(cd "$self" || exit; pwd -P)"
|
||
|
else
|
||
|
basedir="$(cd "$(dirname "$self")" || exit; pwd -P)"
|
||
|
fi
|
||
|
|
||
|
# shellcheck disable=SC1091
|
||
|
. "$basedir"/poco_env.bash
|
||
|
|
||
|
code "$basedir"
|