To directly run:
sh < <( https://gist.github.com/raw/907667/d97626e18a7a3c47900a1a6161043c9dd57e4558/buildv8.sh )
| #!/bin/sh | |
| git clone git://github.com/v8/v8.git | |
| cd v8 | |
| installdir='/usr/local' | |
| if [ "$1" -ne "" ]; | |
| then | |
| installdir=$1 | |
| fi | |
| has_scons=`which -s scons` | |
| if [ $? -eq 1 ]; | |
| then | |
| easy_install scons | |
| fi | |
| scons mode=release library=shared arch=x64 | |
| scons mode=release library=static arch=x64 | |
| scons d8 | |
| install -m 755 d8 $installdir/bin | |
| install -m 644 libv8.a $installdir/lib | |
| install -m 755 libv8.dylib $installdir/lib | |
| install -m 644 libv8preparser.a $installdir/lib | |
| install -m 755 libv8preparser.dylib $installdir/lib | |
| mv include/*.h $installdir/include | |
| cd .. | |
| rm -rf v8 |
To directly run:
sh < <( https://gist.github.com/raw/907667/d97626e18a7a3c47900a1a6161043c9dd57e4558/buildv8.sh )