Commit da7920d2 authored by Mehdi Sabwat's avatar Mehdi Sabwat
Browse files

add $WORK_DIR variable

parent 18fa6dc7
...@@ -15,7 +15,7 @@ checkfail() ...@@ -15,7 +15,7 @@ checkfail()
exit 1 exit 1
fi fi
} }
WORK_DIR=$PWD
# Download the portable SDK and uncompress it # Download the portable SDK and uncompress it
if [ ! -d emsdk ]; then if [ ! -d emsdk ]; then
...@@ -25,6 +25,7 @@ if [ ! -d emsdk ]; then ...@@ -25,6 +25,7 @@ if [ ! -d emsdk ]; then
checkfail "emsdk: fetch failed" checkfail "emsdk: fetch failed"
fi fi
cd $WORK_DIR
# Go go go vlc # Go go go vlc
if [ ! -d "vlc" ]; then if [ ! -d "vlc" ]; then
...@@ -54,7 +55,8 @@ cd extras/tools ...@@ -54,7 +55,8 @@ cd extras/tools
checkfail "buildsystem tools: bootstrap failed" checkfail "buildsystem tools: bootstrap failed"
make $MAKEFLAGS make $MAKEFLAGS
checkfail "buildsystem tools: make" checkfail "buildsystem tools: make"
cd ../../..
cd $WORK_DIR
diagnostic "Setting the environment" diagnostic "Setting the environment"
source emsdk/emsdk_env.sh source emsdk/emsdk_env.sh
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment