summaryrefslogtreecommitdiff
path: root/copyright-year-gen
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headersDmitry V. Levin2019-09-251-1/+1
| | | | | Headers updated automatically using maint/update_copyright_years.sh script.
* copyright-year-gen, file-date-gen: enhance error diagnosticsDmitry V. Levin2019-07-151-1/+1
| | | | | * copyright-year-gen: Prefix error message with the script name. * file-date-gen: Likewise. Bail out in case of invalid date.
* Add copyright headers to some files that lack themDmitry V. Levin2018-12-241-1/+6
| | | | | | We do our best to keep copyright headers up to date, yet git history provides better information on this subject and is more accurate than copyright headers.
* build: use more traditional git optionsDmitry V. Levin2018-11-241-1/+1
| | | | | | | | | | The support of --no-patch alias to -s option in "git diff" and related git commands was added in git v1.8.4. * copyright-year-gen: Use "git show -s" instead of "git show --no-patch". * file-date-gen: Use "git log -s" instead of "git log --no-patch". Closes: https://github.com/strace/strace/issues/80
* build: make it even more reproducibleDmitry V. Levin2018-04-201-3/+10
| | | | | | | | | | * Makefile.am (today): Consistently print the UTC date in C locale. * configure.ac (RPM_CHANGELOGTIME, DEB_CHANGELOGTIME): Likewise. * maint/update_copyright_years.sh: Likewise. * copyright-year-gen: Likewise. When $SOURCE_DATE_EPOCH is non-empty, use it as fallback date before the current system date. References: https://github.com/strace/strace/pull/68
* copyright-year-gen: workaround for old git versionsEugene Syromyatnikov2017-08-281-1/+1
| | | | | | | | 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.
* Derive copyright year from the git commit dateEugene Syromyatnikov2017-04-191-0/+27
This solves problems like the need to update test suite on every New Year's Eve. * Makefile.am (dist-hook): Generate .year. * copyright-year-gen: New file. * configure.ac (copyright_year): New m4 variable, defined as the output of copyright-year-gen script. (AC_COPYRIGHT): Use it. (COPYRIGHT_YEAR): New output variable and preprocessor macro. * strace.c (print_version): Use COPYRIGHT_YEAR. * strace.spec.in (%prep): Save the value of COPYRIGHT_YEAR autoconf variable to .year file. * tests/strace-V.test (config_year): New variable, derived from config.h. Add sanity checks for $config_year and use it in expected output. Reported-by: Andreas Schwab <schwab@suse.de>