Skip to content

Commit

Permalink
sbcl: use language-specific heredoc delimiters
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 committed Dec 15, 2024
1 parent 1d1ee3c commit 4b5e632
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Formula/s/sbcl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@ def install
SBCL_SOURCE_ROOT: pkgshare/"src",
SBCL_HOME: lib/"sbcl"
pkgshare.install %w[contrib src]
(lib/"sbcl/sbclrc").write <<~EOS
(lib/"sbcl/sbclrc").write <<~'LISP'
(setf (logical-pathname-translations "SYS")
'(("SYS:SRC;**;*.*.*" #p"#{pkgshare}/src/**/*.*")
("SYS:CONTRIB;**;*.*.*" #p"#{pkgshare}/contrib/**/*.*")))
EOS
LISP
end

test do
(testpath/"simple.sbcl").write <<~EOS
(testpath/"simple.sbcl").write <<~LISP
(write-line (write-to-string (+ 2 2)))
EOS
LISP
output = shell_output("#{bin}/sbcl --script #{testpath}/simple.sbcl")
assert_equal "4", output.strip
end
Expand Down

0 comments on commit 4b5e632

Please sign in to comment.