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

Commit d22a765

Browse files
committed
[interpreter] Simplify wast.js build
1 parent 9867945 commit d22a765

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

interpreter/meta/jslib/build.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,19 @@ echo 1>&2 ==== Preparing ====
7474
npm link bs-platform
7575

7676
echo 1>&2 ==== Compiling ====
77-
BSPATH=`bsb -where`
78-
echo 1>&2 BSPATH = $BSPATH
7977
bsb || exit 1
80-
cp '$BSPATH/js/*.js' lib/js/src
8178

8279
echo 1>&2 ==== Linking full version ====
8380
LOG=1
84-
link lib/js/src/*.js >temp.js || exit 1
81+
FILES='node_modules/bs-platform/lib/js/*.js lib/js/src/*.js'
82+
link $FILES >temp.js || exit 1
8583

8684
echo 1>&2 ==== Running for dependencies ====
87-
node temp.js >temp.log || exit 1
85+
node temp.js | tee temp.log || exit 1
8886

8987
echo 1>&2 ==== Linking stripped version ====
9088
used=''
91-
for file in `ls lib/js/src/*.js`
89+
for file in `ls $FILES`
9290
do
9391
if grep -q `basename $file | sed s/.js//g` temp.log
9492
then

0 commit comments

Comments
 (0)