diff options
author | Erich Eckner <git@eckner.net> | 2018-10-08 16:23:51 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-10-08 16:23:51 +0200 |
commit | e06cf08e31ba1e2c796912fc337e69bb5ab0e281 (patch) | |
tree | 1eec9eb3e17b8796743a01ee9a4fd73fc3cfae25 /openttd-git | |
parent | 9f43db0890fa87c22c7750ec30c23da1310dba64 (diff) | |
download | archlinuxewe.git.save-e06cf08e31ba1e2c796912fc337e69bb5ab0e281.tar.xz |
openttd-git: do not use checkout date but commit date
Diffstat (limited to 'openttd-git')
-rw-r--r--[-rwxr-xr-x] | openttd-git/PKGBUILD | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/openttd-git/PKGBUILD b/openttd-git/PKGBUILD index 480336d6..5fc19559 100755..100644 --- a/openttd-git/PKGBUILD +++ b/openttd-git/PKGBUILD @@ -54,7 +54,11 @@ prepare() { cd "${srcdir}/${pkgname}" - ISODATE=$(find {src,bin} -type f -printf "%TY%Tm%Td\n" | sort -n | tail -n1) + ISODATE=$( + date -d@$( + git log -n1 --pretty=format:%ct + ) +'%Y%m%d' + ) HASH=$(find {src,bin} -type f -exec sha512sum {} \; | sort | sha512sum - | cut -d' ' -f1) SHORTHASH=$(echo ${HASH} | cut -c1-8) printf '%s\t%s\t%s\t%s\n' \ |