From 02c88f21e0bb67c4dadedb29517da971ab727daa Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 3 Feb 2017 08:03:13 -0500 Subject: [PATCH] Remove scripts folder (to be replaced with bootstrap mechanism later) --- scripts/README.md | 0 scripts/VARS | 23 -------------------- scripts/setup-cc.sh | 48 ----------------------------------------- scripts/setup-csharp.sh | 11 ---------- scripts/setup-js.sh | 22 ------------------- scripts/setup-rust.sh | 25 --------------------- scripts/setup-sh.sh | 12 ----------- 7 files changed, 141 deletions(-) delete mode 100644 scripts/README.md delete mode 100644 scripts/VARS delete mode 100755 scripts/setup-cc.sh delete mode 100755 scripts/setup-csharp.sh delete mode 100755 scripts/setup-js.sh delete mode 100755 scripts/setup-rust.sh delete mode 100755 scripts/setup-sh.sh diff --git a/scripts/README.md b/scripts/README.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/scripts/VARS b/scripts/VARS deleted file mode 100644 index 611297ad7..000000000 --- a/scripts/VARS +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env bash - -HOSTNAME=`emacs --batch --eval '(message "%s" (system-name))' 2>&1` - -ROOT_DIR="$(cd $(dirname $0)/../ && pwd -P)" -CACHE_DIR="$ROOT_DIR/private/cache/$HOSTNAME" -ELPA_DIR="$ROOT_DIR/.cask/`emacs --version | grep -E -o '2[4-9]\.[0-9\.]+'`/elpa" -EXT_DIR="$ROOT_DIR/ext" - -# -is-mac() { [[ "$OSTYPE" == darwin* ]]; } -is-arch() { [ -f "/etc/arch-release" ]; } -is-deb() { [ -f "/etc/debian_version" ]; } - -git-repo() { - old=$(pwd) - if [ -d "$2" ]; then - cd "$2" && git pull - else - git clone --depth 1 --recursive "$1" "$2" - fi - cd "$old" -} diff --git a/scripts/setup-cc.sh b/scripts/setup-cc.sh deleted file mode 100755 index 04b3a8f2d..000000000 --- a/scripts/setup-cc.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 -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 diff --git a/scripts/setup-csharp.sh b/scripts/setup-csharp.sh deleted file mode 100755 index 9d0ceb478..000000000 --- a/scripts/setup-csharp.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -source VARS - -# -echo "Setting up C# (omnisharp)" - -git-repo "https://github.com/OmniSharp/omnisharp-server" omnisharp -cd omnisharp && xbuild -mv omnisharp/bin/Debug/OmniSharp.exe ./OmniSharp.exe -rm -rf omnisharp diff --git a/scripts/setup-js.sh b/scripts/setup-js.sh deleted file mode 100755 index 5b3ecc2f4..000000000 --- a/scripts/setup-js.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash - -source VARS - -# -echo "Setting up JS (tern/trepanjs)" - -case "$OSTYPE" in - darwin*) - brew install node - ;; - linux*) - if is-arch; then - sudo pacman --needed --noconfirm -S nodejs npm - else - echo "..." - exit 1 - fi - ;; -esac - -npm -g install trepanjs tern diff --git a/scripts/setup-rust.sh b/scripts/setup-rust.sh deleted file mode 100755 index 4b392b30b..000000000 --- a/scripts/setup-rust.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env bash - -source VARS - -# -echo "Setting up Rust" - -case "$OSTYPE" in - darwin*) - brew install rust - ;; - linux*) - if is-arch; then - sudo pacman --noconfirm -S rust cargo - elif is-deb; then - echo ... - exit 1 - fi -esac - -git-repo "https://github.com/rust-lang/rust.git" "rust" -git-repo "https://github.com/phildawes/racer.git" "racer-src" - -cd racer-src && cargo build --release -mv racer-src/target/release/racer ./racer diff --git a/scripts/setup-sh.sh b/scripts/setup-sh.sh deleted file mode 100755 index 49a1ca27d..000000000 --- a/scripts/setup-sh.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -source VARS - -# -echo "Setting up zsh/bash (zshdb, bashdb)" - -if is-mac; then - brew install zshdb bashdb -elif is-arch; then - sudo pacman --noconfirm -S zshdb bashdb -fi