Project

General

Profile

« Previous | Next » 

Revision 78cb3a0c

Added by Dominic Cleal over 8 years ago

Update scl_prefix_update script for ruby/ror split

ruby193 split into ruby and ror collections, so all Rails related
packages now should be using scl_prefix_ror.

View differences:

tfm/scl_prefix_update.rb
end
def replace(file)
file.gsub(/(%{\??)scl_prefix}([\w%{}()-]+)/) { |m| "#{$1}#{lookup($2)}}#{$2}" }
file.gsub(/(%{\??)scl_prefix[\w_]*}([\w%{}()-]+)/) { |m| "#{$1}#{lookup($2)}}#{$2}" }
end
def add_obsoletes(file, filename)
......
ARGV.each do |a|
begin
File.write(a, add_obsoletes(replace(File.read(a)), a))
File.write(a, replace(File.read(a)))
rescue => e
puts "parsing #{a}"
raise e

Also available in: Unified diff