commit 5afdb4528b5cc7d102d38d4fe275b8aa60159cf4
parent 7f227e22a87ee496d806763486f6de06014c8855
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Sun, 3 Jan 2010 17:05:19 -0500
Merge branch 'ferret-deprecation' into next
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/bin/sup-convert-ferret-index b/bin/sup-convert-ferret-index
@@ -42,6 +42,12 @@ def run cmd
puts
end
+begin
+ require 'xapian'
+rescue LoadError
+ Trollop::die "you don't have the xapian gem installed, so this script won't do much for you--`gem install xapian` (or xapian-full) first"
+end
+
Redwood::start
index = Redwood::Index.init
Trollop::die "you appear to already have a Xapian index--delete #{File.join(Redwood::BASE_DIR, "xapian")} if you really want to do this" unless Redwood::Index.is_a_deprecated_ferret_index?