Add the standard header generator script
git-svn-id: file:///home/svn/framework3/trunk@4420 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
abbeb2e87e
commit
e345e983f2
|
@ -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}")
|
||||
|
||||
|
|
@ -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/
|
||||
##
|
||||
|
||||
|
Loading…
Reference in New Issue