Skip to content
Snippets Groups Projects
Commit 0d6c5bcc authored by Moul's avatar Moul
Browse files

[doc] #111: Add script to update the copyright year

parent 4a230c32
No related branches found
No related tags found
No related merge requests found
Pipeline #9761 passed
#!/bin/fish
# Script to update the copyright year in header files
set NEW_YEAR (date +"%Y")
set OLD_YEAR (math $NEW_YEAR - 1)
find duniterpy tests examples -type f -name "*.py" | \
xargs sed -i "s/Copyright 2014-$OLD_YEAR V/Copyright 2014-$NEW_YEAR V/g"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment