Skip to content

Commit 30e6658

Browse files
yamtxiaoxiang781216
authored andcommitted
cibuild.sh: Create $prebuilt/env.sh
It aimed to be sourced by user shell to update PATH.
1 parent 196ed08 commit 30e6658

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cibuild.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ apps=$WD/../apps
3131
tools=$WD/../tools
3232
prebuilt=$WD/../prebuilt
3333
os=$(uname -s)
34+
EXTRA_PATH=
3435

3536
case $os in
3637
Darwin)
@@ -45,6 +46,7 @@ esac
4546

4647
function add_path {
4748
PATH=$1:$PATH
49+
EXTRA_PATH=$1:$EXTRA_PATH
4850
}
4951

5052
function python-tools {
@@ -281,6 +283,8 @@ function install_tools {
281283
$func
282284
done
283285
popd
286+
287+
echo PATH=$EXTRA_PATH\$PATH > $prebuilt/env.sh
284288
}
285289

286290
function run_builds {

0 commit comments

Comments
 (0)