Skip to content

Commit

Permalink
[devtools] Fix symlink creation
Browse files Browse the repository at this point in the history
Should fix soil/app-tests.
  • Loading branch information
Andy C committed Jan 18, 2023
1 parent b887ce0 commit 25e7fb8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions devtools/bin.sh
Expand Up @@ -70,7 +70,7 @@ opy-dev-snippet() {
sh-snippet opy_.py $action
}

make-bin-stubs() {
make-src-stubs() {
### bin/ is for running with the Python interpreter.
mkdir -p bin

Expand All @@ -86,15 +86,19 @@ make-bin-stubs() {
make-osh-eval
}

make-bin-links() {
make-ovm-links() {
### _bin/ is for running with OVM app bundles.

mkdir -p _bin

for link in "${OIL_OVM_NAMES[@]}"; do
# _bin/ symlink
ln -s -f --verbose oil.ovm _bin/$link
done
}

make-cpp-links() {
for link in "${OIL_OVM_NAMES[@]}"; do
# Skip oil in favor of ysh.
if test $link != 'oil'; then
# TODO: do this in Ninja?
Expand Down
2 changes: 1 addition & 1 deletion test/ble.sh
Expand Up @@ -23,7 +23,7 @@ build() {
make # make osh

# make _bin/osh
devtools/bin.sh make-bin-links
devtools/bin.sh make-ovm-links

# make ble.sh
cd $BASE_DIR
Expand Down

0 comments on commit 25e7fb8

Please sign in to comment.