Skip to content

Commit

Permalink
sqlite: remove options and caveats.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Jan 21, 2019
1 parent f979711 commit 29d769c
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions Formula/sqlite.rb
Expand Up @@ -24,6 +24,8 @@ def install
# applications. Set to 250000 (Same value used in Debian and Ubuntu).
ENV.append "CPPFLAGS", "-DSQLITE_MAX_VARIABLE_NUMBER=250000"
ENV.append "CPPFLAGS", "-DSQLITE_ENABLE_RTREE=1"
ENV.append "CPPFLAGS", "-DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_FTS3_PARENTHESIS=1"
ENV.append "CPPFLAGS", "-DSQLITE_ENABLE_JSON1=1"

args = %W[
--prefix=#{prefix}
Expand All @@ -37,26 +39,6 @@ def install
system "make", "install"
end

def caveats
s = ""
user_history = "~/.sqlite_history"
user_history_path = File.expand_path(user_history)
if File.exist?(user_history_path) && File.read(user_history_path).include?("\\040")
s += <<~EOS
Homebrew has detected an existing SQLite history file that was created
with the editline library. The current version of this formula is
built with Readline. To back up and convert your history file so that
it can be used with Readline, run:
sed -i~ 's/\\\\040/ /g' #{user_history}
before using the `sqlite` command-line tool again. Otherwise, your
history will be lost.
EOS
end
s
end

test do
path = testpath/"school.sql"
path.write <<~EOS
Expand Down

0 comments on commit 29d769c

Please sign in to comment.