update copyright script to run over all headers and exclude 3rd party ones

This commit is contained in:
arvidn
2020-08-31 12:57:32 +02:00
committed by Arvid Norberg
parent 3c1a52b339
commit e4f69db499

View File

@ -3,9 +3,13 @@
import glob
import copyright
import os
def update_file(name):
if os.path.split(name)[1] in ['puff.cpp', 'puff.hpp', 'sha1.cpp', 'sha1.hpp', 'route.h']:
return
new_header = copyright.get_authors(name)
subst = ''
f = open(name)
@ -38,6 +42,7 @@ def update_file(name):
for i in glob.glob('src/*.cpp') + \
glob.glob('include/libtorrent/*.hpp') + \
glob.glob('include/libtorrent/aux_/*.hpp') + \
glob.glob('include/libtorrent/extensions/*.hpp') + \
glob.glob('include/libtorrent/kademlia/*.hpp') + \
glob.glob('src/kademlia/*.cpp') + \