From e5f3f6d844ce5aa7bbf26c52c66537ebff0e8957 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 8 Jun 2017 02:45:41 +0200 Subject: [PATCH] Remove vestigial modules/lang/cc/setup.sh --- modules/lang/cc/setup.sh | 48 ---------------------------------------- 1 file changed, 48 deletions(-) delete mode 100755 modules/lang/cc/setup.sh diff --git a/modules/lang/cc/setup.sh b/modules/lang/cc/setup.sh deleted file mode 100755 index cd5c3ef41..000000000 --- a/modules/lang/cc/setup.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/env bash - -source VARS - -# -echo "Setting up C/C++ (irony-mode)" - -case "$OSTYPE" in - darwin*) - brew install cmake - brew install llvm --with-clang - ;; - linux*) - if is-arch; then - sudo pacman --noconfirm --needed -S cmake clang - elif is-deb; then - echo "Not implemented" - exit 1 - fi - ;; -esac - -# Build irony-server -git-repo "https://github.com/Sarcasm/irony-mode" "irony-mode" - -# Reset build directory -cd irony-mode/server -[ -d build ] && rm -rf build -mkdir build && cd build - -DEST="$(pwd)/irony-mode/server/build/irony/" - -# Compile -if is-mac -then - cmake -DCMAKE_INSTALL_RPATH_USE_LINK_PATH\=ON \ - -DCMAKE_INSTALL_PREFIX\="$DEST" ../ -else - cmake -DCMAKE_INSTALL_PREFIX\="$DEST" ../ -fi -cmake --build . --use-stderr --config Release --target install - -if is-mac -then - install_name_tool -change @rpath/libclang.dylib \ - /usr/local/opt/llvm/lib/libclang.dylib \ - $DEST/bin/irony-server -fi