$ git clone https://socialnetwork.ion.nu/socialnetwork-web.git
commit 374dd43ba06ba71db4e0aa38f4b8c23ffa58f6f2
Author: Alicia <...>
Date: Mon Jun 11 22:47:38 2018 +0200
Check that node.js is available before attempting to build libraries (required by emscripten)
diff --git a/buildlibs.sh b/buildlibs.sh
index 993b6d0..4559926 100755
--- a/buildlibs.sh
+++ b/buildlibs.sh
@@ -1,6 +1,6 @@
#!/bin/sh -e
# socialnetwork-web, peer-to-peer social network web client
-# Copyright (C) 2017 alicia@ion.nu
+# Copyright (C) 2017-2018 alicia@ion.nu
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License version 3
@@ -23,6 +23,8 @@ GMPVERSION="$1"
NETTLEVERSION="$2"
GNUTLSVERSION="$3"
+if ! x="`which node 2> /dev/null`" || [ -z "$x" ]; then echo 'Building with emscripten depends on node.js'; exit 1; fi
+
cd toolchain
# gmp
tar -xJf "../gmp-${GMPVERSION}.tar.xz"