Module Name:    src
Committed By:   martin
Date:           Tue Apr 23 07:47:36 UTC 2024

Modified Files:
        src: build.sh

Log Message:
For consistency, check MKREPRO_TIMESTAMP always numerically (not as string)


To generate a diff of this commit:
cvs rdiff -u -r1.376 -r1.377 src/build.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/build.sh
diff -u src/build.sh:1.376 src/build.sh:1.377
--- src/build.sh:1.376	Sat Apr 20 12:25:46 2024
+++ src/build.sh	Tue Apr 23 07:47:36 2024
@@ -1,5 +1,5 @@
 #! /usr/bin/env sh
-#	$NetBSD: build.sh,v 1.376 2024/04/20 12:25:46 rillig Exp $
+#	$NetBSD: build.sh,v 1.377 2024/04/23 07:47:36 martin Exp $
 #
 # Copyright (c) 2001-2023 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -2031,7 +2031,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.376 2024/04/20 12:25:46 rillig Exp $
+# Generated from:  \$NetBSD: build.sh,v 1.377 2024/04/23 07:47:36 martin Exp $
 # with these arguments: ${_args}
 #
 
@@ -2433,7 +2433,7 @@ setup_mkrepro()
 		fi
 	done
 
-	[ "${MKREPRO_TIMESTAMP}" != "0" ] || bomb "Failed to compute timestamp"
+	[ "${MKREPRO_TIMESTAMP}" -ne 0 ] || bomb "Failed to compute timestamp"
 	if [ -z "${quiet}" ]; then
 		statusmsg2 "MKREPRO_TIMESTAMP" \
 			"$(repro_date "${MKREPRO_TIMESTAMP}")"

Reply via email to