Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Bail out on error computing the timestamp



details:   https://anonhg.NetBSD.org/src/rev/3602e7563adf
branches:  trunk
changeset: 819824:3602e7563adf
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Dec 18 19:00:20 2016 +0000

description:
Bail out on error computing the timestamp

diffstat:

 build.sh |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r a7dd46498bc7 -r 3602e7563adf build.sh
--- a/build.sh  Sun Dec 18 18:32:24 2016 +0000
+++ b/build.sh  Sun Dec 18 19:00:20 2016 +0000
@@ -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 @@
        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 @@
        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
 }



Home | Main Index | Thread Index | Old Index