Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DuniterPy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
DuniterPy
Commits
0d6c5bcc
Commit
0d6c5bcc
authored
4 years ago
by
Moul
Browse files
Options
Downloads
Patches
Plain Diff
[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
4 years ago
Stage: format
Stage: test
Stage: build
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
update_copyright_year.sh
+8
-0
8 additions, 0 deletions
update_copyright_year.sh
with
8 additions
and
0 deletions
update_copyright_year.sh
0 → 100755
+
8
−
0
View file @
0d6c5bcc
#!/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"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment