From b442d5e83ceaaf41ae972fc67aaad52e86bf380f Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Thu, 23 Jul 2020 21:53:42 +0100 Subject: [PATCH] Add setup target to builder script --- README.org | 17 ++++++----------- builder | 5 +++++ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.org b/README.org index 1bcad9c..b646208 100644 --- a/README.org +++ b/README.org @@ -1,16 +1,11 @@ * Serene lang ** Setup development environment -*** Emacs -Install the dependencies including ~clangd~ and just run ~lsp~ +Setup the githook and install dependencies using the following commands: -**** Requirements on the Rust side -To setup the dev envrionment you need to have *Clippy* and *RLS* installed. Run the -following commands to install them: - -#+BEGIN_SRC bash -rustup component add rls --toolchain stable-x86_64-unknown-linux-gnu -rustup component add --toolchain stable-x86_64-unknown-linux-gnu clippy -rustup component add rustfmt +#+BEGIN_EXAMPLE bash +./builder deps +./builder setup #+END_SRC -Use your desired toolchain instead of *stable-x86_64-unknown-linux-gnu* +*** Emacs +Install the dependencies including ~clangd~ and just run ~lsp~ diff --git a/builder b/builder index 916b503..5b63d56 100755 --- a/builder +++ b/builder @@ -72,6 +72,11 @@ case "$command" in clang-tools-10 valgrind cmake ninja-build \ doxygen ;; + "setup") + pushd ./scripts + ./scripts/git-pre-commit-format install + popd + ;; "build") clean mkdir -p $BUILD_DIR