Source-Changes-HG archive

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

[src/trunk]: src Add sanity check: passed -x but no xsrc directory



details:   https://anonhg.NetBSD.org/src/rev/1f3af4ac8ee5
branches:  trunk
changeset: 826853:1f3af4ac8ee5
user:      maya <maya%NetBSD.org@localhost>
date:      Mon Oct 02 15:40:00 2017 +0000

description:
Add sanity check: passed -x but no xsrc directory

diffstat:

 build.sh |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r d04308e864f7 -r 1f3af4ac8ee5 build.sh
--- a/build.sh  Mon Oct 02 13:47:58 2017 +0000
+++ b/build.sh  Mon Oct 02 15:40:00 2017 +0000
@@ -1,5 +1,5 @@
 #! /usr/bin/env sh
-#      $NetBSD: build.sh,v 1.316 2017/04/08 18:22:35 christos Exp $
+#      $NetBSD: build.sh,v 1.317 2017/10/02 15:40:00 maya Exp $
 #
 # Copyright (c) 2001-2011 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -1441,7 +1441,12 @@
                fi
                ;;
        esac
+
+       if [ ${MKX11-no} = "yes" ]; then
+               test -d ${X11SRCDIR-/usr/xsrc} || bomb "Asked to build X11 but no xsrc"
+       fi
 }
+
 # print_tooldir_make --
 # Try to find and print a path to an existing
 # ${TOOLDIR}/bin/${toolprefix}program
@@ -1893,7 +1898,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.316 2017/04/08 18:22:35 christos Exp $
+# Generated from:  \$NetBSD: build.sh,v 1.317 2017/10/02 15:40:00 maya Exp $
 # with these arguments: ${_args}
 #
 



Home | Main Index | Thread Index | Old Index