Revision 78ecc5804b33c88d9836d5a8b98128d21b016c28 authored by Boris Dalstein on 07 January 2020, 15:06:58 UTC, committed by Boris Dalstein on 07 January 2020, 15:06:58 UTC
1 parent 56dce02
Raw File
update_copyright.py
#!/usr/bin/env python3
#

from pathlib import Path

before = "Copyright (C) 2012-2019 The VPaint Developers"

after = "Copyright (C) 2012-2019 The VPaint Developers"

if __name__ == "__main__":

    path = Path(".")
    for file in path.glob("src/**/*"):
        if file.suffix in [".h", ".cpp", ".pro"]:
            s1 = file.read_text()
            s2 = s1.replace(before, after)
            if s1 != s2:
                file.write_text(s2)
                print(file)
back to top