diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2017-08-27 18:29:05 +0200 |
---|---|---|
committer | Eugene Syromyatnikov <evgsyr@gmail.com> | 2017-08-28 02:31:33 +0200 |
commit | f07e8ada33c485b618fd6b64f7354579d3c9945a (patch) | |
tree | 60c2f5f5f2671ff5c2a808960e7c14ef3d4aa6f5 /copyright-year-gen | |
parent | 12087b75700d1c7293f53de9c83ca6ff0927c6db (diff) | |
download | strace-f07e8ada33c485b618fd6b64f7354579d3c9945a.tar.gz |
copyright-year-gen: workaround for old git versions
Apply the same treatment to this script as the one in
v4.18-278-g295cf32.
* copyright-year-gen <year>: Change format to format:%cD, remove --date,
supply output as a -d option argument to date +%Y.
Diffstat (limited to 'copyright-year-gen')
-rwxr-xr-x | copyright-year-gen | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/copyright-year-gen b/copyright-year-gen index 5a2110e44..9d55acd67 100755 --- a/copyright-year-gen +++ b/copyright-year-gen @@ -13,7 +13,7 @@ year= [ -f "${YEAR_FILE}" ] && year="$(cat "${YEAR_FILE}")" [ -n "${year}" ] || - year="$(git show --format=format:%cd --no-patch --date=format:%Y)" + year="$(date +%Y -d "$(git show --format=format:%cD --no-patch)")" [ -n "${year}" ] || year="${DEFAULT_YEAR}" |