https://github.com/dalboris/vpaint
Revision 966921c19eb4c067f52f2890ad83f8a6570acf15 authored by Boris Dalstein on 09 November 2019, 22:35:25 UTC, committed by Boris Dalstein on 09 November 2019, 22:35:25 UTC
1 parent b9942b9
Tip revision: 966921c19eb4c067f52f2890ad83f8a6570acf15 authored by Boris Dalstein on 09 November 2019, 22:35:25 UTC
Change license from MIT to Apache 2.0 (#88)
Change license from MIT to Apache 2.0 (#88)
Tip revision: 966921c
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)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...