This approach, to explain in simple terms, is literally replacing the old_text
with the new_text
.
python3 script.py perceval/__init.py__ "# Copyright (C) 2015-2019 Bitergia" "# Copyright (C) 2015-2020 Bitergia"
Though it kinda weird approach, but it works fine. You can see the changes here https://github.com/chaoss/grimoirelab-perceval/compare/master...vchrombie:license-automation.