Permalink
Browse files

Use “squiggly” heredocs.

  • Loading branch information...
ilovezfs authored and MikeMcQuaid committed Oct 18, 2017
1 parent 6faac96 commit 16ebe5f1843e6cb54856311ff0f676be53007329
Showing 1,518 changed files with 2,076 additions and 2,076 deletions.
View
@@ -21,7 +21,7 @@ def install
system "ant"
libexec.install "dist/abcl.jar", "dist/abcl-contrib.jar"
(bin/"abcl").write <<-EOS.undent
(bin/"abcl").write <<~EOS
#!/bin/sh
#{"rlwrap " if build.with?("rlwrap")}java -cp #{libexec}/abcl.jar:"$CLASSPATH" org.armedbear.lisp.Main "$@"
EOS
View
@@ -20,7 +20,7 @@ def install
end
test do
(testpath/"voices.abc").write <<-EOF.undent
(testpath/"voices.abc").write <<~EOF
X:7
T:Qui Tolis (Trio)
C:Andre Raison
View
@@ -25,7 +25,7 @@ def install
end
test do
(testpath/"balk.abc").write <<-EOF.undent
(testpath/"balk.abc").write <<~EOF
X: 1
T: Abdala
F: https://www.youtube.com/watch?v=YMf8yXaQDiQ
View
@@ -21,7 +21,7 @@ class Abuse < Formula
depends_on "sdl_mixer"
depends_on "libvorbis"
def startup_script; <<-EOS.undent
def startup_script; <<~EOS
#!/bin/bash
#{libexec}/abuse-bin -datadir "#{pkgshare}" "$@"
EOS
@@ -70,7 +70,7 @@ def install
(bin/"abuse").write startup_script
end
def caveats; <<-EOS.undent
def caveats; <<~EOS
Game settings and saves will be written to the ~/.abuse folder.
EOS
end
View
@@ -16,7 +16,7 @@ def install
plist_options :manual => "activemq start"
def plist; <<-EOS.undent
def plist; <<~EOS
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
View
@@ -21,7 +21,7 @@ def install
test do
# Test file is the beginning of block.stl from admesh's source
(testpath/"test.stl").write <<-EOS.undent
(testpath/"test.stl").write <<~EOS
SOLID Untitled1
FACET NORMAL 0.00000000E+00 0.00000000E+00 1.00000000E+00
OUTER LOOP
View
@@ -11,7 +11,7 @@ def install
# Unlink and re-write to matches homebrew's installation conventions
config.unlink
config.write <<-EOS.undent
config.write <<~EOS
#!/bin/bash
echo 'adr_bin_dir=\"#{bin}\"'
echo 'adr_template_dir=\"#{prefix}\"'
@@ -54,7 +54,7 @@ def caveats
s = ""
if build.without? "default-names"
s += <<-EOS.undent
s += <<~EOS
To avoid conflicting with our other AESCrypt package the binaries
have been renamed paescrypt and paescrypt_keygen.
EOS
View
@@ -18,7 +18,7 @@ def install
test do
cpp_file = testpath/"main.cpp"
cpp_file.write <<-EOS.undent
cpp_file.write <<~EOS
#include <iostream>
int main() {
View
@@ -79,7 +79,7 @@ def caveats
s = ""
if build.with? "stdlib"
s += <<-EOS.undent
s += <<~EOS
To use the Agda standard library by default:
mkdir -p ~/.agda
echo #{HOMEBREW_PREFIX}/lib/agda/standard-library.agda-lib >>~/.agda/libraries
@@ -92,7 +92,7 @@ def caveats
test do
simpletest = testpath/"SimpleTest.agda"
simpletest.write <<-EOS.undent
simpletest.write <<~EOS
module SimpleTest where
data ℕ : Set where
@@ -117,7 +117,7 @@ module SimpleTest where
EOS
stdlibtest = testpath/"StdlibTest.agda"
stdlibtest.write <<-EOS.undent
stdlibtest.write <<~EOS
module StdlibTest where
open import Data.Nat
@@ -129,7 +129,7 @@ module StdlibTest where
EOS
iotest = testpath/"IOTest.agda"
iotest.write <<-EOS.undent
iotest.write <<~EOS
module IOTest where
open import Agda.Builtin.IO
@@ -145,7 +145,7 @@ module IOTest where
EOS
stdlibiotest = testpath/"StdlibIOTest.agda"
stdlibiotest.write <<-EOS.undent
stdlibiotest.write <<~EOS
module StdlibIOTest where
open import IO
View
@@ -34,7 +34,7 @@ def install
test do
# Test case taken from here: http://horms.net/projects/aggregate/examples.shtml
test_input = <<-EOS.undent
test_input = <<~EOS
10.0.0.0/19
10.0.255.0/24
10.1.0.0/24
@@ -45,7 +45,7 @@ def install
10.1.3.0/25
EOS
expected_output = <<-EOS.undent
expected_output = <<~EOS
10.0.0.0/19
10.0.255.0/24
10.1.0.0/23
View
@@ -27,7 +27,7 @@ def install
end
def caveats
<<-EOS.undent
<<~EOS
You may also wish to install tuntap:
The TunTap project provides kernel extensions for macOS that allow
@@ -49,7 +49,7 @@ def caveats
plist_options :startup => true
def plist; <<-EOS.undent
def plist; <<~EOS
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
View
@@ -35,7 +35,7 @@ def install
end
test do
(testpath/"aide.conf").write <<-EOS.undent
(testpath/"aide.conf").write <<~EOS
database = file:/var/lib/aide/aide.db
database_out = file:/var/lib/aide/aide.db.new
database_new = file:/var/lib/aide/aide.db.new
View
@@ -33,7 +33,7 @@ def install
system "make", "prefix=#{prefix}", "mandir=#{man1}", "install"
end
def caveats; <<-EOS.undent
def caveats; <<~EOS
Run `airodump-ng-oui-update` install or update the Airodump-ng OUI file.
EOS
end
View
@@ -28,7 +28,7 @@ def install
end
test do
(testpath/"src/main/java/sample/hello/HelloWorld.java").write <<-EOS.undent
(testpath/"src/main/java/sample/hello/HelloWorld.java").write <<~EOS
package sample.hello;
import akka.actor.Props;
@@ -55,7 +55,7 @@ def install
}
}
EOS
(testpath/"src/main/java/sample/hello/Greeter.java").write <<-EOS.undent
(testpath/"src/main/java/sample/hello/Greeter.java").write <<~EOS
package sample.hello;
import akka.actor.UntypedActor;
@@ -77,7 +77,7 @@ def install
}
EOS
(testpath/"src/main/java/sample/hello/Main.java").write <<-EOS.undent
(testpath/"src/main/java/sample/hello/Main.java").write <<~EOS
package sample.hello;
public class Main {
View
@@ -20,7 +20,7 @@ def install
test do
path = testpath/"hello.alg"
path.write <<-EOS.undent
path.write <<~EOS
print("Hello World")
EOS
View
@@ -18,7 +18,7 @@ def install
end
test do
(testpath/"allure-results/allure-result.json").write <<-EOS.undent
(testpath/"allure-results/allure-result.json").write <<~EOS
{
"uuid": "allure",
"name": "testReportGeneration",
View
@@ -26,7 +26,7 @@ def install
end
test do
(testpath/"test.cpp").write <<-EOS.undent
(testpath/"test.cpp").write <<~EOS
#include <amqpcpp.h>
int main()
{
View
@@ -109,7 +109,7 @@ def install
test do
ENV["ANSIBLE_REMOTE_TEMP"] = testpath/"tmp"
(testpath/"playbook.yml").write <<-EOF.undent
(testpath/"playbook.yml").write <<~EOF
---
- hosts: all
gather_facts: False
View
@@ -560,7 +560,7 @@ def install
test do
ENV["ANSIBLE_REMOTE_TEMP"] = testpath/"tmp"
(testpath/"playbook.yml").write <<-EOF.undent
(testpath/"playbook.yml").write <<~EOF
---
- hosts: all
gather_facts: False
View
@@ -545,7 +545,7 @@ def install
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
end
def caveats; <<-EOS.undent
def caveats; <<~EOS
Homebrew writes wrapper scripts that set PYTHONPATH in ansible's
execution environment, which is inherited by Python scripts invoked
by ansible. If this causes problems, you can modify your playbooks
@@ -555,7 +555,7 @@ def caveats; <<-EOS.undent
test do
ENV["ANSIBLE_REMOTE_TEMP"] = testpath/"tmp"
(testpath/"playbook.yml").write <<-EOF.undent
(testpath/"playbook.yml").write <<~EOF
---
- hosts: all
gather_facts: False
View
@@ -590,7 +590,7 @@ def install
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
end
def caveats; <<-EOS.undent
def caveats; <<~EOS
Homebrew writes wrapper scripts that set PYTHONPATH in ansible's
execution environment, which is inherited by Python scripts invoked
by ansible. If this causes problems, you can modify your playbooks
@@ -600,7 +600,7 @@ def caveats; <<-EOS.undent
test do
ENV["ANSIBLE_REMOTE_TEMP"] = testpath/"tmp"
(testpath/"playbook.yml").write <<-EOF.undent
(testpath/"playbook.yml").write <<~EOF
---
- hosts: all
gather_facts: False
View
@@ -15,7 +15,7 @@ def install
end
test do
(testpath/"build.xml").write <<-EOS.undent
(testpath/"build.xml").write <<~EOS
<project name="HomebrewTest" default="init" basedir=".">
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
<target name="init">
View
@@ -35,7 +35,7 @@ def install
libexec.install Dir["*"]
bin.install_symlink Dir["#{libexec}/bin/*"]
rm bin/"ant"
(bin/"ant").write <<-EOS.undent
(bin/"ant").write <<~EOS
#!/bin/sh
#{libexec}/bin/ant -lib #{HOMEBREW_PREFIX}/share/ant "$@"
EOS
@@ -52,7 +52,7 @@ def install
end
test do
(testpath/"build.xml").write <<-EOS.undent
(testpath/"build.xml").write <<~EOS
<project name="HomebrewTest" basedir=".">
<property name="src" location="src"/>
<property name="build" location="build"/>
@@ -64,7 +64,7 @@ def install
</target>
</project>
EOS
(testpath/"src/main/java/org/homebrew/AntTest.java").write <<-EOS.undent
(testpath/"src/main/java/org/homebrew/AntTest.java").write <<~EOS
package org.homebrew;
public class AntTest {
public static void main(String[] args) {
View
@@ -19,14 +19,14 @@ def install
libexec.install Dir["*"]
bin.install_symlink Dir["#{libexec}/bin/*"]
rm bin/"ant"
(bin/"ant").write <<-EOS.undent
(bin/"ant").write <<~EOS
#!/bin/sh
#{libexec}/bin/ant -lib #{HOMEBREW_PREFIX}/share/ant "$@"
EOS
end
test do
(testpath/"build.xml").write <<-EOS.undent
(testpath/"build.xml").write <<~EOS
<project name="HomebrewTest" basedir=".">
<property name="src" location="src"/>
<property name="build" location="build"/>
@@ -38,7 +38,7 @@ def install
</target>
</project>
EOS
(testpath/"src/main/java/org/homebrew/AntTest.java").write <<-EOS.undent
(testpath/"src/main/java/org/homebrew/AntTest.java").write <<~EOS
package org.homebrew;
public class AntTest {
public static void main(String[] args) {
View
@@ -11,7 +11,7 @@ def install
pkgshare.install "bin/antigen.zsh"
end
def caveats; <<-EOS.undent
def caveats; <<~EOS
To activate antigen, add the following to your ~/.zshrc:
source #{HOMEBREW_PREFIX}/share/antigen/antigen.zsh
EOS
View
@@ -30,7 +30,7 @@ def install
man1.install "Docs/antiword.1"
end
def caveats; <<-EOS.undent
def caveats; <<~EOS
You can install mapping files in ~/.antiword
EOS
end
Oops, something went wrong.

0 comments on commit 16ebe5f

Please sign in to comment.