@@ -4,6 +4,8 @@ echo $PATH
4export LC_ALL=C.UTF-8
4export LC_ALL=C.UTF-8
5GHCVER=`ghc --numeric-version`
5GHCVER=`ghc --numeric-version`
7+JSADDLE_VERSION=`head -n2 jsaddle.cabal | tail -n1 | sed 's/[^0-9.]//g'`
7if [[ -d .cabal && -d .ghc ]]; then
9if [[ -d .cabal && -d .ghc ]]; then
8 cp -a .cabal .ghc /root
10 cp -a .cabal .ghc /root
@@ -12,7 +14,7 @@ npm install ws
13cabal update
15cabal update
14cabal new-build 'jsaddle:lib:jsaddle' 'jsaddle:test:test-tool'
16cabal new-build 'jsaddle:lib:jsaddle' 'jsaddle:test:test-tool'
15−GHC_PACKAGE_PATH=/opt/ghc/$GHCVER/lib/ghc-$GHCVER/package.conf.d:~/.cabal/store/ghc-$GHCVER/package.db:./dist-newstyle/packagedb/ghc-$GHCVER jsaddle_datadir=`pwd` ./dist-newstyle/build/jsaddle-0.5.0.0/build/test-tool/test-tool
17+GHC_PACKAGE_PATH=/opt/ghc/$GHCVER/lib/ghc-$GHCVER/package.conf.d:~/.cabal/store/ghc-$GHCVER/package.db:./dist-newstyle/packagedb/ghc-$GHCVER jsaddle_datadir=`pwd` ./dist-newstyle/build/jsaddle-$JSADDLE_VERSION/build/test-tool/test-tool
17# update the cache
19# update the cache
18rm -rf .cabal
20rm -rf .cabal