Skip to content

Instantly share code, notes, and snippets.

@rcarmo
Forked from hnakamur/build_node9.sh
Created October 13, 2020 21:13
Show Gist options
  • Save rcarmo/60e45e727a736d2630df937d21ee6254 to your computer and use it in GitHub Desktop.
Save rcarmo/60e45e727a736d2630df937d21ee6254 to your computer and use it in GitHub Desktop.
get and build node9
#!/bin/sh
set -e
basedir=`pwd`
mkdir -p "$basedir/github.com/jvburnes"
git clone https://github.com/jvburnes/node9 "$basedir/github.com/jvburnes/node9"
mkdir -p "$basedir/github.com/stevedonovan"
git clone https://github.com/stevedonovan/Penlight "$basedir/github.com/stevedonovan/Penlight"
cd "$basedir/github.com/jvburnes/node9/libuv"
./autogen.sh
./configure
make
cd "$basedir/github.com/jvburnes/node9"
for f in src/libnode9.make src/node9.make src/styx/libs/lib9/Makefile src/styx/libs/libbio/Makefile src/styx/libs/libsec/port/Makefile src/styx/utils/Makefile; do
sed -i '' -e "s|/Users/jburnes/dev/node9|$basedir/github.com/jvburnes/node9|" $f
done
make
ln -s "$basedir/github.com/stevedonovan/Penlight/lua/pl" pl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment