summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2016-12-18 19:00:20 +0000
committerchristos <christos@NetBSD.org>2016-12-18 19:00:20 +0000
commitb7369f143363af1ecabcb82e6afcb38e4cc9b492 (patch)
tree17d45b69ba158884f14e92bd08b58c0d3ed857b7 /build.sh
parentde341e54f6a8d58e389136235f7e87ea58939ffb (diff)
Bail out on error computing the timestamp
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 28f35a4790a..51f640785e7 100755
--- a/build.sh
+++ b/build.sh
@@ -1,5 +1,5 @@
#! /usr/bin/env sh
-# $NetBSD: build.sh,v 1.312 2016/12/18 02:20:30 christos Exp $
+# $NetBSD: build.sh,v 1.313 2016/12/18 19:00:20 christos Exp $
#
# Copyright (c) 2001-2011 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -1892,7 +1892,7 @@ createmakewrapper()
eval cat <<EOF ${makewrapout}
#! ${HOST_SH}
# Set proper variables to allow easy "make" building of a NetBSD subtree.
-# Generated from: \$NetBSD: build.sh,v 1.312 2016/12/18 02:20:30 christos Exp $
+# Generated from: \$NetBSD: build.sh,v 1.313 2016/12/18 19:00:20 christos Exp $
# with these arguments: ${_args}
#
@@ -2200,6 +2200,7 @@ setup_mkrepro()
fi
local cvslatest=$(print_tooldir_program cvslatest)
MKREPRO_TIMESTAMP=$(${cvslatest} ${dirs})
+ [ -n "${MKREPRO_TIMESTAMP}" ] || bomb "Failed to compute timestamp"
statusmsg2 "MKREPRO_TIMESTAMP" "$(date -r ${MKREPRO_TIMESTAMP})"
export MKREPRO MKREPRO_TIMESTAMP
}