quilt: use elisp shorthand

This commit is contained in:
Dominyk Tiller 2016-07-22 04:49:29 +01:00
parent ac366f16aa
commit b48bd48ff6
No known key found for this signature in database
GPG key ID: FE19AEFCF658C6F6

View file

@ -22,18 +22,18 @@ class Quilt < Formula
"--with-sed=#{HOMEBREW_PREFIX}/bin/gsed",
"--without-getopt"
system "make"
system "make", "install", "emacsdir=#{share}/emacs/site-lisp/quilt"
system "make", "install", "emacsdir=#{elisp}"
end
test do
mkdir "patches"
(testpath/"patches").mkpath
(testpath/"test.txt").write "Hello, World!"
system "#{bin}/quilt", "new", "test.patch"
system "#{bin}/quilt", "add", "test.txt"
system bin/"quilt", "new", "test.patch"
system bin/"quilt", "add", "test.txt"
rm "test.txt"
(testpath/"test.txt").write "Hi!"
system "#{bin}/quilt", "refresh"
assert_match /-Hello, World!/, File.read("patches/test.patch")
assert_match /\+Hi!/, File.read("patches/test.patch")
system bin/"quilt", "refresh"
assert_match(/-Hello, World!/, File.read("patches/test.patch"))
assert_match(/\+Hi!/, File.read("patches/test.patch"))
end
end