From 6269f15b36cf39b872dd4f1589301c6906893491 Mon Sep 17 00:00:00 2001 From: Daniel Barber Date: Thu, 18 Apr 2019 15:36:35 -0400 Subject: [PATCH] Install language tools with asdf --- lib/tools.sh | 18 ++++++++++++++++++ setup.sh | 4 ++++ 2 files changed, 22 insertions(+) create mode 100755 lib/tools.sh diff --git a/lib/tools.sh b/lib/tools.sh new file mode 100755 index 0000000..30592f5 --- /dev/null +++ b/lib/tools.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +export LDFLAGS="-L/usr/local/opt/zlib/lib" +export CPPFLAGS="-I/usr/local/opt/zlib/include" + +cd "$HOME" + +for tool in `awk -F " " '{print $1}' .tool-versions`; do + asdf plugin-add "$tool" + + if [ "$tool" == "nodejs" ]; then + bash "$HOME/.asdf/plugins/nodejs/bin/import-release-team-keyring" + fi +done + +asdf install + +cd - diff --git a/setup.sh b/setup.sh index b207a86..328ed85 100755 --- a/setup.sh +++ b/setup.sh @@ -69,4 +69,8 @@ step "Set git author" step "Tweaking macOS config settings (takes a while)" "$MAC_SETUP_DIR/lib/macos.sh" +# Install language tools +step "Installing language tools" +"$MAC_SETUP_DIR/lib/tools.sh" + echo "${GREEN}✔ ${WHITE}${BOLD}Done!${NC} 🎉"