diff options
| author | Remko Tronçon <git@el-tramo.be> | 2011-10-15 07:07:44 (GMT) |
|---|---|---|
| committer | Remko Tronçon <git@el-tramo.be> | 2011-10-15 07:07:44 (GMT) |
| commit | 3a60cfec978c512c7b4bbe6c04a0ca3fbdf1e51e (patch) | |
| tree | e3262b33e9b897a0045c9153257f64157a8795e3 | |
| parent | f4bac581bac1fa4df60efafd3325791fec8a121a (diff) | |
| download | swift-contrib-3a60cfec978c512c7b4bbe6c04a0ca3fbdf1e51e.zip swift-contrib-3a60cfec978c512c7b4bbe6c04a0ca3fbdf1e51e.tar.bz2 | |
Added extra entries to ignore files.
| -rw-r--r-- | .gitignore | 3 | ||||
| -rwxr-xr-x | BuildTools/Copyrighter.py | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -11,36 +11,37 @@ *.obj *.a *.so *.pdb *.swp *.nib *.exe *.dll *.lib *.exp *.ilk *.res *.moc *.patch *~ _CL_* *.manifest moc_* qrc_* ui_* config.py checker config.log .sconf_temp .sconsign.dblite Swiften/Examples/TuneBot/TuneBot Swift/QtUI/swift Swift/QtUI/DefaultTheme.qrc checker-report.xml VERSION.* cppcheck.log /build /.settings/ /nbproject/private/ 3rdParty/LibMiniUPnPc/src/miniupnpc/miniupnpcstrings.h -*.sublime-workspace
\ No newline at end of file +*.sublime-workspace +/xmppbench diff --git a/BuildTools/Copyrighter.py b/BuildTools/Copyrighter.py index b20a786..248873b 100755 --- a/BuildTools/Copyrighter.py +++ b/BuildTools/Copyrighter.py @@ -102,56 +102,56 @@ def get_userinfo() : def get_copyright(username, email) : if email in ["git@el-tramo.be", "git@kismith.co.uk"] : license = DEFAULT_LICENSE else : license = CONTRIBUTOR_LICENSE return Copyright(username, datetime.date.today().strftime("%Y"), license) def check_copyright(filename) : (prolog, copyright, epilog) = parse_file(filename) if copyright == None : print "No copyright found in: " + filename #print "Please run '" + sys.argv[0] + " set-copyright " + filename + "'" return False else : return True def set_copyright(filename, copyright) : (prolog, c, epilog) = parse_file(filename) comment_chars = get_comment_chars_for_filename(filename) copyright_text = copyright.to_string(comment_chars) file = open(filename, "w") if prolog != "": file.write(prolog) file.write(copyright_text) if epilog != "" : file.write(epilog) file.close() if sys.argv[1] == "check-copyright" : if not check_copyright(sys.argv[2]) : sys.exit(-1) elif sys.argv[1] == "check-all-copyrights" : ok = True for (path, dirs, files) in os.walk(".") : - if "3rdParty" in path or ".sconf" in path or "Swift.app" in path or path.startswith("build") : + if "3rdParty" in path or ".sconf" in path or "Swift.app" in path or path.startswith("build") or "xmppbench" in path : continue for filename in [os.path.join(path, file) for file in files if (file.endswith(".cpp") or file.endswith(".h")) and not "ui_" in file and not "moc_" in file and not "qrc_" in file and not "BuildVersion.h" in file and not "Swiften.h" in file and not "Version.h" in file and not "swiften-config.h" in file and not "linit.cpp" in file ] : ok &= check_copyright(filename) if not ok : sys.exit(-1) elif sys.argv[1] == "set-copyright" : (username, email) = get_userinfo() copyright = get_copyright(username, email) set_copyright(sys.argv[2], copyright) elif sys.argv[1] == "set-all-copyrights" : (username, email) = get_userinfo() copyright = get_copyright(username, email) for (path, dirs, files) in os.walk(".") : if "3rdParty" in path or ".sconf" in path or "Swift.app" in path : continue for filename in [os.path.join(path, file) for file in files if (file.endswith(".cpp") or file.endswith(".h")) and not "ui_" in file and not "moc_" in file and not "qrc_" in file and not "BuildVersion.h" in file and not "swiften-config.h" in file] : set_copyright(filename, copyright) else : print "Unknown command: " + sys.argv[1] sys.exit(-1) |
Swift