summaryrefslogtreecommitdiff
path: root/Toolchain
diff options
context:
space:
mode:
Diffstat (limited to 'Toolchain')
-rwxr-xr-xToolchain/BuildFuseExt2.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/Toolchain/BuildFuseExt2.sh b/Toolchain/BuildFuseExt2.sh
new file mode 100755
index 0000000000..3876f58b37
--- /dev/null
+++ b/Toolchain/BuildFuseExt2.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+export PATH="/usr/local/opt/m4/bin:$PATH"
+
+die() {
+ echo "die: $*"
+ exit 1
+}
+
+if [[ "$OSTYPE" != "darwin"* ]]; then
+ die "This script makes sense to be run only on macOS"
+fi
+
+mkdir -p "$DIR"/Tarballs
+pushd "$DIR"/Tarballs
+
+if [ ! -d fuse-ext2 ]; then
+ git clone https://github.com/alperakcan/fuse-ext2.git
+fi
+
+cd fuse-ext2
+./autogen.sh
+CFLAGS="-I/usr/local/include/osxfuse/ -I/$(brew --prefix e2fsprogs)/include" LDFLAGS="-L$(brew --prefix e2fsprogs)/lib" ./configure
+make
+sudo make install
+popd