archrelease: copy trunk to testing-x86_64
[arch-packages.git] / a2ps / trunk / a2ps-adhere-source-date-epoch.patch
blobc869e061ce2723a5cda411c95d824bf4ad96d495
1 diff -aur a2ps-4.14.old/etc/Makefile.am a2ps-4.14/etc/Makefile.am
2 --- a2ps-4.14.old/etc/Makefile.am 2020-05-15 16:22:46.236954254 +0200
3 +++ a2ps-4.14/etc/Makefile.am 2020-05-15 16:58:42.382348094 +0200
4 @@ -44,5 +44,5 @@
6 # Building a time stamp to know the version.
7 README: README.in Makefile
8 - sed "s!@date@!`date`!g;s!@version@!$(VERSION)!g" \
9 + sed "s!@date@!$(shell date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}")!g;s!@version@!$(VERSION)!g" \
10 $(srcdir)/README.in > README
11 diff -aur a2ps-4.14.old/etc/Makefile.in a2ps-4.14/etc/Makefile.in
12 --- a2ps-4.14.old/etc/Makefile.in 2020-05-15 16:22:46.236954254 +0200
13 +++ a2ps-4.14/etc/Makefile.in 2020-05-15 16:59:00.132720058 +0200
14 @@ -486,7 +486,7 @@
16 # Building a time stamp to know the version.
17 README: README.in Makefile
18 - sed "s!@date@!`date`!g;s!@version@!$(VERSION)!g" \
19 + sed "s!@date@!$(shell date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}")!g;s!@version@!$(VERSION)!g" \
20 $(srcdir)/README.in > README
21 # Tell versions [3.59,3.63) of GNU make to not export all variables.
22 # Otherwise a system limit (for SysV at least) may be exceeded.