You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by eh...@apache.org on 2007/02/03 04:45:31 UTC

svn commit: r503167 - in /lucene/solr/trunk/client/ruby/solrb/script: ./ setup.rb solrshell

Author: ehatcher
Date: Fri Feb  2 19:45:31 2007
New Revision: 503167

URL: http://svn.apache.org/viewvc?view=rev&rev=503167
Log:
Ruby solrshell

Added:
    lucene/solr/trunk/client/ruby/solrb/script/
    lucene/solr/trunk/client/ruby/solrb/script/setup.rb   (with props)
    lucene/solr/trunk/client/ruby/solrb/script/solrshell   (with props)

Added: lucene/solr/trunk/client/ruby/solrb/script/setup.rb
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/client/ruby/solrb/script/setup.rb?view=auto&rev=503167
==============================================================================
--- lucene/solr/trunk/client/ruby/solrb/script/setup.rb (added)
+++ lucene/solr/trunk/client/ruby/solrb/script/setup.rb Fri Feb  2 19:45:31 2007
@@ -0,0 +1,14 @@
+#!/usr/bin/env ruby
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+include Solr

Propchange: lucene/solr/trunk/client/ruby/solrb/script/setup.rb
------------------------------------------------------------------------------
    svn:executable = *

Added: lucene/solr/trunk/client/ruby/solrb/script/solrshell
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/client/ruby/solrb/script/solrshell?view=auto&rev=503167
==============================================================================
--- lucene/solr/trunk/client/ruby/solrb/script/solrshell (added)
+++ lucene/solr/trunk/client/ruby/solrb/script/solrshell Fri Feb  2 19:45:31 2007
@@ -0,0 +1,18 @@
+#!/usr/bin/env ruby
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+solr_lib   = File.dirname(__FILE__) + '/../lib/solr'
+setup    = File.dirname(__FILE__) + '/setup'
+irb_name = RUBY_PLATFORM =~ /mswin32/ ? 'irb.bat' : 'irb'
+
+exec "#{irb_name} -r #{solr_lib} -r #{setup} --simple-prompt"

Propchange: lucene/solr/trunk/client/ruby/solrb/script/solrshell
------------------------------------------------------------------------------
    svn:executable = *