
If defined, use SOURCE_DATE_EPOCH environment variable; make the build Reproducible by forcing timestamps. See https://reproducible-builds.org/docs/source-date-epoch/ for more information. Thanks Bernhard M. Wiedemann for bringing this to our attention. Fixes open-mpi/ompi#3759 Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp> Signed-off-by: Bernhard M. Wiedemann <bwiedemann@suse.de> Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
11 строки
409 B
Bash
Исполняемый файл
11 строки
409 B
Bash
Исполняемый файл
#!/bin/sh
|
|
#
|
|
# Copyright (c) 2017 Research Organization for Information Science
|
|
# and Technology (RIST). All rights reserved.
|
|
# Copyright (c) 2020 Cisco Systems, Inc. All rights reserved.
|
|
|
|
# Provide a way to override build date for reproducible build results
|
|
# See https://reproducible-builds.org/ for why this is good.
|
|
|
|
date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" "$@"
|