diff options
author | Ashish Gupta <ashmew2@gmail.com> | 2017-09-15 23:11:51 +0200 |
---|---|---|
committer | Ashish Gupta <ashmew2@gmail.com> | 2017-10-25 22:04:55 +0200 |
commit | 9d4f7fa70b66899dea36dfd77845c40a9a8111c6 (patch) | |
tree | 945eba1e61444a598065993c0e4b20a85eb9bfb2 | |
parent | 32c281e79aef8d384f76aab8851e44f273ad49e8 (diff) | |
download | netsurf-9d4f7fa70b66899dea36dfd77845c40a9a8111c6.tar.gz netsurf-9d4f7fa70b66899dea36dfd77845c40a9a8111c6.tar.bz2 |
Add builder
-rwxr-xr-x | nskbuild.sh | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/nskbuild.sh b/nskbuild.sh new file mode 100755 index 000000000..2fef6f46a --- /dev/null +++ b/nskbuild.sh @@ -0,0 +1,55 @@ +#!/bin/bash + +# Place me in a new directory somewhere! +PREFIX=/opt/netsurf/ + +sudo mkdir -p $PREFIX +sudo chown $USER:$USER $PREFIX + +function gitclone() { + [[ ! -d $2 ]] && git clone $1 +} + +# # clone all ns libs +for lib in libcss libdom libhubbub libnsbmp libnsfb libnsgif libnsutils libparserutils libsvgtiny libutf8proc libwapcaplet; do + gitclone git://git.netsurf-browser.org/${lib}.git ${lib} +done + +# # clone toolchains, buildsystem and netsurf. +for repo in toolchains buildsystem netsurf; do + gitclone git://git.netsurf-browser.org/${repo}.git ${repo} +done + +# Set up the buildsystem +cd buildsystem +git checkout ashmew2/kolibri-cross +make install +cd .. + +# Set up the kolibrios compiler toolchain +cd toolchains +git checkout ashmew2/kolibrios +cd kos32-gcc +make install +cd .. + +# Set up all netsurf libs (Order is important for libs) +for lib in libparserutils libwapcaplet libcss libhubbub libdom libnsbmp libnsgif libnsutils libsvgtiny libutf8proc; do + cd $lib + HOST=kolibrios make install + cd .. +done + +cd libnsfb +git checkout ashmew2/kolibri +HOST=kolibrios make install +cd .. + +exit 0 + +# Compile and install Netsurf +cd netsurf +git checkout ashmew2/netsurf-kolibrios +make TARGET=kolibrios install +cd .. + |