Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src If we're going xsrc hunting, lets's do it properly. In par...
details: https://anonhg.NetBSD.org/src/rev/d34e9523357b
branches: trunk
changeset: 356684:d34e9523357b
user: kre <kre%NetBSD.org@localhost>
date: Sun Oct 08 00:45:25 2017 +0000
description:
If we're going xsrc hunting, lets's do it properly. In particular
it is not "good" just because ../xsrc or /usr/xsrc exists, if the user said
-X /no/xsrc/here ... Further, when we find it, remember it.
While here, also look in my favourite place: .../src/xsrc - src/x would be
better (or src/x11) but that's too hard given the cvs module name and src
tarball format.
diffstat:
build.sh | 25 ++++++++++++++++++-------
1 files changed, 18 insertions(+), 7 deletions(-)
diffs (48 lines):
diff -r 985b4c95aa56 -r d34e9523357b build.sh
--- a/build.sh Sun Oct 08 00:35:26 2017 +0000
+++ b/build.sh Sun Oct 08 00:45:25 2017 +0000
@@ -1,5 +1,5 @@
#! /usr/bin/env sh
-# $NetBSD: build.sh,v 1.319 2017/10/03 11:02:36 maya Exp $
+# $NetBSD: build.sh,v 1.320 2017/10/08 00:45:25 kre Exp $
#
# Copyright (c) 2001-2011 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -1442,12 +1442,23 @@
;;
esac
- if [ ${MKX11-no} = "yes" ]; then
- test -d ../xsrc || \
- test -d /usr/xsrc || \
- test -d "${X11SRCDIR}" || \
+ while [ ${MKX11-no} = "yes" ]; do # not really a loop
+ test -n "${X11SRCDIR}" && {
+ test -d "${X11SRCDIR}" ||
+ bomb "X11SRCDIR (${X11SRCDIR}) does not exist (with -x)"
+ break
+ }
+ for _xd in \
+ "${NETBSDSRCDIR%/*}/xsrc" \
+ "${NETBSDSRCDIR}/xsrc" \
+ /usr/xsrc
+ do
+ test -d "${_xd}" &&
+ setmakeenv X11SRCDIR "${_xd}" &&
+ break 2
+ done
bomb "Asked to build X11 but no xsrc"
- fi
+ done
}
# print_tooldir_make --
@@ -1901,7 +1912,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.319 2017/10/03 11:02:36 maya Exp $
+# Generated from: \$NetBSD: build.sh,v 1.320 2017/10/08 00:45:25 kre Exp $
# with these arguments: ${_args}
#
Home |
Main Index |
Thread Index |
Old Index