Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Commit ae113ed

Browse files
authored
[interpreter] Update BS support (#1058)
1 parent 81c5f27 commit ae113ed

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

interpreter/meta/jslib/build.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ echo "
3131
for file in $*
3232
do
3333
echo 1>&2 Including $file
34-
name=`basename $file | sed s/.js//g`
34+
name=`basename $file | sed s/[.]js//g`
3535
echo "
3636
_registry['$name'] = function() {
3737
    let exports = {};
@@ -70,12 +70,14 @@ echo "
7070
"
7171
}
7272

73+
echo 1>&2 ==== Preparing ====
74+
npm link bs-platform
75+
7376
echo 1>&2 ==== Compiling ====
74-
BSPATH=`which bsb`
75-
BPATH=`dirname $BSPATH`/../lib/js
77+
BSPATH=`bsb -where`
7678
echo 1>&2 BSPATH = $BSPATH
77-
bsb.exe || exit 1
78-
cp `dirname $BSPATH`/../lib/js/*.js lib/js/src
79+
bsb || exit 1
80+
cp '$BSPATH/js/*.js' lib/js/src
7981

8082
echo 1>&2 ==== Linking full version ====
8183
LOG=1

0 commit comments

Comments
 (0)