[DRE-commits] r3400 - in packages-wip: . libspreadsheet-ruby libspreadsheet-ruby/branches libspreadsheet-ruby/branches/upstream libspreadsheet-ruby/branches/upstream/current libspreadsheet-ruby/branches/upstream/current/bin
Gunnar Wolf
gwolf at alioth.debian.org
Tue Apr 21 16:13:00 UTC 2009
Author: gwolf
Date: 2009-04-21 16:13:00 +0000 (Tue, 21 Apr 2009)
New Revision: 3400
Added:
packages-wip/libspreadsheet-ruby/
packages-wip/libspreadsheet-ruby/branches/
packages-wip/libspreadsheet-ruby/branches/upstream/
packages-wip/libspreadsheet-ruby/branches/upstream/current/
packages-wip/libspreadsheet-ruby/branches/upstream/current/bin/
packages-wip/libspreadsheet-ruby/branches/upstream/current/bin/xlsopcodes
Log:
[svn-inject] Installing original source of libspreadsheet-ruby
Added: packages-wip/libspreadsheet-ruby/branches/upstream/current/bin/xlsopcodes
===================================================================
--- packages-wip/libspreadsheet-ruby/branches/upstream/current/bin/xlsopcodes (rev 0)
+++ packages-wip/libspreadsheet-ruby/branches/upstream/current/bin/xlsopcodes 2009-04-21 16:13:00 UTC (rev 3400)
@@ -0,0 +1,18 @@
+#!/usr/bin/env ruby
+
+require 'spreadsheet'
+
+source, target = ARGV
+
+if source.nil?
+ puts "Usage: #{$0} <source> [<target>]"
+ exit -1
+end
+
+target = target ? File.open(target, 'w') : STDOUT
+
+reader = Spreadsheet::Excel::Reader.new :print_opcodes => target
+reader.setup source
+
+while tuple = reader.get_next_chunk
+end
Property changes on: packages-wip/libspreadsheet-ruby/branches/upstream/current/bin/xlsopcodes
___________________________________________________________________
Added: svn:executable
+
More information about the Pkg-ruby-extras-commits
mailing list