diff --git a/dev/add_standard_header.rb b/dev/add_standard_header.rb new file mode 100755 index 0000000000..798ba5d9fa --- /dev/null +++ b/dev/add_standard_header.rb @@ -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}") + + diff --git a/dev/banner.txt b/dev/banner.txt deleted file mode 100644 index b80bd73d0e..0000000000 --- a/dev/banner.txt +++ /dev/null @@ -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/ -## - -