Open Maks3w opened 8 years ago
Every year we need to update the copyright for every place where the copyright holder.
These places are usually:
There are two patterns of copyrights:
Copyright (c) 2015,
Copyright (c) 2015-2016,
We want a script tool for automatize the search and replace of the copyright years with the following rules.
Following years
First year
Tools can be proposed for to be merged on this repo or to be available for public use in any other repository,
We want you!
#!/bin/bash YEAR=$(date +"%Y") for file in $(find . -type f); do sed -i 's/\(Copyright (c) [0-9]\{4\}\)\(-[0-9]\{4\}\)\?/\1-'"$YEAR"'/' $file done;
Please make a Pull Request ;-)
Every year we need to update the copyright for every place where the copyright holder.
These places are usually:
There are two patterns of copyrights:
Copyright (c) 2015,
Copyright (c) 2015-2016,
We want a script tool for automatize the search and replace of the copyright years with the following rules.
Following years
pattern must update the last year in the range with the actual one.First year
pattern must be replaced with theFollowing years
pattern.Tools can be proposed for to be merged on this repo or to be available for public use in any other repository,
We want you!