Files
metasploit-gs/dev/add_standard_header.rb
T
HD Moore e345e983f2 Add the standard header generator script
git-svn-id: file:///home/svn/framework3/trunk@4420 4d416f70-5f16-0410-b530-b9f4589650da
2007-02-18 00:32:44 +00:00

33 lines
561 B
Ruby
Executable File

#!/usr/bin/env ruby
banner =
%q{##
# $Id:$
##
##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/projects/Framework/
##
}
mod = ARGV.shift
data = File.read(mod)
if (data =~ /This file is part of the Metasploit/) {
exit(0)
}
fd = File.open(mod, 'w')
fd.write(banner)
fd.write(data)
fd.close
system("svn propset svn:keywords 'Rev Revision Id Header' #{mod}")