newlisp: style nit

master
Dominyk Tiller 2016-01-30 21:37:53 +00:00
parent 4e82b8476b
commit 12499b41d1
1 changed files with 4 additions and 2 deletions

View File

@ -17,8 +17,10 @@ class Newlisp < Formula
ENV.append_to_cflags "-DNEWCONFIG -c"
# fix the prefix in a source file
inreplace "guiserver/newlisp-edit.lsp", "#!/usr/local/bin/newlisp", "#!/usr/bin/env newlisp"
inreplace "guiserver/newlisp-edit.lsp", "/usr/local/bin/newlisp", "#{opt_bin}/newlisp"
inreplace "guiserver/newlisp-edit.lsp" do |s|
s.gsub! "#!/usr/local/bin/newlisp", "#!/usr/bin/env newlisp"
s.gsub! "/usr/local/bin/newlisp", "#{opt_bin}/newlisp"
end
system "./configure-alt", "--prefix=#{prefix}", "--mandir=#{man}"
system "make"