Add the standard header generator script

git-svn-id: file:///home/svn/framework3/trunk@4420 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2007-02-18 00:32:44 +00:00
parent abbeb2e87e
commit e345e983f2
2 changed files with 32 additions and 12 deletions

32
dev/add_standard_header.rb Executable file
View File

@ -0,0 +1,32 @@
#!/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}")

View File

@ -1,12 +0,0 @@
##
# $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/
##