File: fix_require.rb

package info (click to toggle)
insighttoolkit5 5.2.1-5%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 550,276 kB
  • sloc: cpp: 757,652; ansic: 586,696; xml: 43,107; fortran: 34,788; python: 20,439; sh: 4,167; lisp: 2,158; tcl: 993; java: 362; yacc: 338; asm: 208; perl: 200; makefile: 197; csh: 195; lex: 184; javascript: 98; pascal: 71; ruby: 10
file content (13 lines) | stat: -rwxr-xr-x 296 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env ruby

def fix_require(l)
  l = l.gsub('rb_require(', '// rb_require(')
  l = l.gsub('rb_require_wrapitk(', 'rb_require(')
  return l
end

input = File.new(ARGV[0])
output = File.new(ARGV[1], "w")
input.each_line {|line| output.puts( fix_require( line ) )}
input.close
output.close