From 615f07a17f21f31c3715849ec00d95499cc7ebbe Mon Sep 17 00:00:00 2001 From: Michael Rodler Date: Sat, 13 Aug 2016 16:22:58 +0200 Subject: [PATCH] Added witchcraft compiler collection --- wcc/install | 12 ++++++++++++ wcc/install-root-archlinux | 5 +++++ wcc/install-root-debian | 7 +++++++ 3 files changed, 24 insertions(+) create mode 100755 wcc/install create mode 100755 wcc/install-root-archlinux create mode 100755 wcc/install-root-debian diff --git a/wcc/install b/wcc/install new file mode 100755 index 0000000..842b19d --- /dev/null +++ b/wcc/install @@ -0,0 +1,12 @@ +#!/bin/bash -e + +git clone --depth 1 https://github.com/endrazine/wcc +pushd wcc +git submodule init +git submodule update + +make +mv bin/ ../ +popd +pushd bin/ +sed -i "s&/usr/bin/wsh&$(pwd)/wsh&" ./wcch diff --git a/wcc/install-root-archlinux b/wcc/install-root-archlinux new file mode 100755 index 0000000..75c5b0d --- /dev/null +++ b/wcc/install-root-archlinux @@ -0,0 +1,5 @@ +#!/bin/bash +set -eu -o pipefail + +pacman -Syu --noconfirm --needed clang uthash readline capstone \ + libelf binutils gsl diff --git a/wcc/install-root-debian b/wcc/install-root-debian new file mode 100755 index 0000000..1c03f48 --- /dev/null +++ b/wcc/install-root-debian @@ -0,0 +1,7 @@ +#!/bin/bash +set -eu -o pipefail + +apt-get install clang libbfd-dev uthash-dev \ + libelf-dev libcapstone-dev \ + libreadline6 libreadline6-dev \ + libiberty-dev libgsl-dev