diff options
| author | christos <christos@NetBSD.org> | 2016-12-18 19:00:20 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2016-12-18 19:00:20 +0000 |
| commit | b7369f143363af1ecabcb82e6afcb38e4cc9b492 (patch) | |
| tree | 17d45b69ba158884f14e92bd08b58c0d3ed857b7 /build.sh | |
| parent | de341e54f6a8d58e389136235f7e87ea58939ffb (diff) | |
Bail out on error computing the timestamp
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 } |
