~singpolyma/asterisk

e53028316af1111dba45bf16c7d41b7a4d7ca5c3 — Debian VoIP Team 4 years ago d430c5d
build-reproducibly


Gbp-Pq: Name build-reproducibly
2 files changed, 9 insertions(+), 1 deletions(-)

M Makefile
M build_tools/make_build_h
M Makefile => Makefile +1 -1
@@ 484,7 484,7 @@ doc/core-en_US.xml: makeopts .lastclean $(XML_core_en_US)
	@echo "<docs xmlns:xi=\"http://www.w3.org/2001/XInclude\">" >> $@
	@for x in $(MOD_SUBDIRS); do \
		printf "$$x " ; \
		for i in `find $$x -name '*.c'`; do \
		for i in `find $$x -name '*.c' | LC_ALL=C sort`; do \
			$(AWK) -f build_tools/get_documentation $$i >> $@ ; \
		done ; \
	done

M build_tools/make_build_h => build_tools/make_build_h +8 -0
@@ 5,6 5,14 @@ MACHINE=`uname -m  | sed 's/\\\\/\\\\\\\\/g'`
OS=`uname -s`
USER=`id | awk -F")" '{print $1}'| awk -F"(" '{print $2}' | sed 's/\\\\/\\\\\\\\/g'`
DATE=`date -u "+%Y-%m-%d %H:%M:%S"`
if [ -n "${SOURCE_DATE_EPOCH}" ]; then
	# building reproducibly, faking some data
	HOSTNAME='buildd.debian.org'
	KERNEL='unknown'
	MACHINE='unknown'
	USER='nobody'
	DATE=`date -u "+%Y-%m-%d %H:%M:%S" -d @${SOURCE_DATE_EPOCH}`
fi
cat << END
/*
 * build.h