From f24eac47455ad00f0790614d0c61d0a0b5039e15 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 15 Dec 2024 11:08:50 -0500 Subject: [PATCH 1/5] cask: use language-specific heredoc delimiters Signed-off-by: Rui Chen --- Formula/c/cask.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/c/cask.rb b/Formula/c/cask.rb index 0a9fec9d6cdef..8f3855aed11c6 100644 --- a/Formula/c/cask.rb +++ b/Formula/c/cask.rb @@ -27,10 +27,10 @@ def install end test do - (testpath/"Cask").write <<~EOS + (testpath/"Cask").write <<~LISP (source gnu) (depends-on "chess") - EOS + LISP system bin/"cask", "install" (testpath/".cask").directory? end From 4325d4d41aee8a55d728184b9619b9bc32e1419b Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 15 Dec 2024 11:08:51 -0500 Subject: [PATCH 2/5] doxymacs: use language-specific heredoc delimiters Signed-off-by: Rui Chen --- Formula/d/doxymacs.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/d/doxymacs.rb b/Formula/d/doxymacs.rb index 2825c922b2abb..28199cc3d1681 100644 --- a/Formula/d/doxymacs.rb +++ b/Formula/d/doxymacs.rb @@ -50,11 +50,11 @@ def install end test do - (testpath/"test.el").write <<~EOS + (testpath/"test.el").write <<~LISP (add-to-list 'load-path "#{elisp}") (load "doxymacs") (print doxymacs-version) - EOS + LISP output = shell_output("emacs -Q --batch -l #{testpath}/test.el").strip assert_equal "\"#{version}\"", output From 20d34f7e0710cec8bb48e04e6f89718221c10fc0 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 15 Dec 2024 11:08:52 -0500 Subject: [PATCH 3/5] ecl: use language-specific heredoc delimiters Signed-off-by: Rui Chen --- Formula/e/ecl.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/e/ecl.rb b/Formula/e/ecl.rb index 87e46a8b18c85..6c8479e1d2c62 100644 --- a/Formula/e/ecl.rb +++ b/Formula/e/ecl.rb @@ -47,9 +47,9 @@ def install end test do - (testpath/"simple.cl").write <<~EOS + (testpath/"simple.cl").write <<~LISP (write-line (write-to-string (+ 2 2))) - EOS + LISP assert_equal "4", shell_output("#{bin}/ecl -shell #{testpath}/simple.cl").chomp end end From 1d1ee3ca8a9bb1d2cf193edb49a046cdc5b6ed69 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 15 Dec 2024 11:08:52 -0500 Subject: [PATCH 4/5] ol: use language-specific heredoc delimiters Signed-off-by: Rui Chen --- Formula/o/ol.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/o/ol.rb b/Formula/o/ol.rb index 8503d90838abb..184b43aa9daaf 100644 --- a/Formula/o/ol.rb +++ b/Formula/o/ol.rb @@ -28,9 +28,9 @@ def install end test do - (testpath/"gcd.ol").write <<~EOS + (testpath/"gcd.ol").write <<~LISP (print (gcd 1071 1029)) - EOS + LISP assert_equal "21", shell_output("#{bin}/ol gcd.ol").strip end end From 4b5e632d0c74b57bb3361d2d5205f93d49228d99 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 15 Dec 2024 11:08:52 -0500 Subject: [PATCH 5/5] sbcl: use language-specific heredoc delimiters Signed-off-by: Rui Chen --- Formula/s/sbcl.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Formula/s/sbcl.rb b/Formula/s/sbcl.rb index 67fe65ed39a28..0bbcdea38f9d2 100644 --- a/Formula/s/sbcl.rb +++ b/Formula/s/sbcl.rb @@ -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