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

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

parent 36a15228
No related branches found
No related tags found
2 merge requests!113Merge dev into master branch,!111#111: Define the copyright and license statements
Pipeline #9789 waiting for manual action
#!/bin/bash
# Script to update the copyright year in header files
NEW_YEAR=`date +"%Y"`
OLD_YEAR=`expr $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