Sha256: 09eb855e4cab9d2cfc46751f291488fdc42c184698b308b35a7699676387645d

Contents?: true

Size: 694 Bytes

Versions: 7

Compression:

Stored size: 694 Bytes

Contents

# Copyright (C) 2003-2006 Kouichirou Eto, All rights reserved.
# This is free software with ABSOLUTELY NO WARRANTY.
# You can redistribute it and/or modify it under the terms of the GNU GPL 2.

$LOAD_PATH.unshift '..' unless $LOAD_PATH.include? '..'
require 'qwik/util-pathname'

COPYRIGHT_BANNER = <<END
# Copyright (C) 2003-2006 Kouichirou Eto, All rights reserved.
# This is free software with ABSOLUTELY NO WARRANTY.
# You can redistribute it and/or modify it under the terms of the GNU GPL 2.

END

ARGV.each {|fname|
  #s = File.read(fname)
  s = fname.path.read
  unless /\A#/ =~ s
    s = COPYRIGHT_BANNER + s
    fname.path.write(s)
    #File.open(fname, "w"){|f| f.write(s) }
  end
}

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
qwik2md-2.0.1 vendor/qwik/lib/qwik/dev-add-copyright.rb
qwik2md-2.0.0 vendor/qwik/lib/qwik/dev-add-copyright.rb
qwik2md-1.0.2 vendor/qwik/lib/qwik/dev-add-copyright.rb
qwik2md-1.0.1 vendor/qwik/lib/qwik/dev-add-copyright.rb
qwik2md-1.0.0 vendor/qwik/lib/qwik/dev-add-copyright.rb
qwik2md-0.1.0 vendor/qwik/lib/qwik/dev-add-copyright.rb
qwikdoc-0.0.1 vendor/qwik/dev-add-copyright.rb