Commit 0d6c5bcc authored by Moul's avatar Moul

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

parent 4a230c32
Pipeline #9761 passed with stages
in 4 minutes and 49 seconds
#!/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"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment