Commit 10544b1f authored by Vivien Kraus's avatar Vivien Kraus
Browse files

fix the copyright date checker

Now that we changed year, it is obvious that it does not work.
parent f3f7e877
Pipeline #200940 passed with stages
in 38 minutes and 45 seconds
#!/bin/sh
# tarot implements the rules of the tarot game
# Copyright (C) 2019 Vivien Kraus
# Copyright (C) 2019, 2020 Vivien Kraus
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
......@@ -34,7 +34,7 @@ EOF
FIRSTLINE=$(head -n 1 "$1")
SECONDLINE=$(head -n 2 "$1" | tail -n 1)
REST=$(tail -n +4 "$1")
LAST_MODIFICATION=$(git log -1 --format=%cd configure.ac | date '+%Y')
LAST_MODIFICATION=$(date -d "$(git log -1 --format=%cd --date=iso $1)" '+%Y')
case "$1" in
*.png | ./model/*.model | ./nsi/*.rc | ./doc/fdl.texi | ./doc/style.css | ./doc/convergence.csv \
......
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