From 9d7257f67edd7dde2bf3c0b478103a83bfc37984 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Thu, 24 Sep 2015 14:34:45 +0200 Subject: [PATCH 093/257] sys/conf/newvers.sh: Do not add git hash from .git if KERNEL_VERSION_NUMBER is defined ... as this indicates that we are (trying to) reproduce a build. Do not use REPRO_SEED as it's always set nowadays. XXX: There should be a cleaner way to do this. Obtained from: ElectroBSD --- sys/conf/newvers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh index 8e2b1798228e..3d2b8774edb5 100755 --- a/sys/conf/newvers.sh +++ b/sys/conf/newvers.sh @@ -128,7 +128,7 @@ else fi i=`${MAKE:-make} -V KERN_IDENT` -if [ -d "${SYSDIR}/../.git" ] ; then +if [ -z "${KERNEL_VERSION_NUMBER}" -a -d "${SYSDIR}/../.git" ] ; then for dir in /usr/bin /usr/local/bin; do if [ -x "${dir}/git" ] ; then git_cmd="${dir}/git --git-dir=${SYSDIR}/../.git" -- 2.11.0