Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have jane-street-merlin-setup.sh put files in the current directory #3063

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Have jane-street-merlin-setup.sh put files in the current directory
This enables running the script once and having Merlin work across several
checkouts or projects.
  • Loading branch information
lukemaurer committed Sep 23, 2024
commit 394be537c59efcc31042c5b245331c779319ef65
5 changes: 3 additions & 2 deletions jane-street-merlin-setup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

target_dir=$PWD
cd "$(dirname "$0")"

ocamlmerlin="$(which ocamlmerlin 2>&-)"
Expand All @@ -11,5 +12,5 @@ fi
set -e

merlin_dir="$(dirname "$ocamlmerlin")"
echo "$merlin_dir" > .local-merlin-binaries
ocamlc -where > .local-ocaml-lib
echo "$merlin_dir" > "$target_dir"/.local-merlin-binaries
ocamlc -where > "$target_dir"/.local-ocaml-lib