File: dh_ruby

package info (click to toggle)
dpkg-ruby 0.3.6%2Bnmu2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 348 kB
  • ctags: 386
  • sloc: ruby: 2,841; fortran: 90; makefile: 75; cpp: 36; sh: 8
file content (8 lines) | stat: -rw-r--r-- 270 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
#!/usr/bin/ruby

substvars="debian/#{ARGV[0]}.substvars"
require 'rbconfig'
CONFIG = Config::MAKEFILE_CONFIG
File.open(substvars, "a+") {|f|
 f.puts "ruby:Depends=ruby (>= #{CONFIG['MAJOR']}.#{CONFIG['MINOR']}), ruby (<< #{CONFIG['MAJOR']}.#{CONFIG['MINOR'].to_i+1})"
}