Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/sets If ad.${machine_arch} exists, perfer it over ad...
details: https://anonhg.NetBSD.org/src/rev/0e788597e185
branches: trunk
changeset: 535089:0e788597e185
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sat Aug 10 02:01:00 2002 +0000
description:
If ad.${machine_arch} exists, perfer it over ad.${machine_cpu},
because it will have more specific information.
diffstat:
distrib/sets/makeflist | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r f4683cf20a5b -r 0e788597e185 distrib/sets/makeflist
--- a/distrib/sets/makeflist Sat Aug 10 01:59:33 2002 +0000
+++ b/distrib/sets/makeflist Sat Aug 10 02:01:00 2002 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: makeflist,v 1.49 2002/07/23 09:02:45 lukem Exp $
+# $NetBSD: makeflist,v 1.50 2002/08/10 02:01:00 thorpej Exp $
#
# Print out the files in some or all lists.
# Usage: makeflist [-b] [-x] [-a arch] [-m machine] [-s setsdir] [setname ...]
@@ -100,7 +100,12 @@
for setname in $lists; do
cat $setd/lists/$setname/mi
if [ "$machine" != "$machine_arch" ]; then
- if [ -f $setd/lists/$setname/ad.${machine_cpu} ]; then
+ # Prefer an ad.${machine_arch} over an ad.${machine_cpu},
+ # since the arch-specific one will be more specific than
+ # the cpu-specific one.
+ if [ -f $setd/lists/$setname/ad.${machine_arch} ]; then
+ cat $setd/lists/$setname/ad.${machine_arch}
+ elif [ -f $setd/lists/$setname/ad.${machine_cpu} ]; then
cat $setd/lists/$setname/ad.${machine_cpu}
fi
if [ "$shlib" != "no" -a \
Home |
Main Index |
Thread Index |
Old Index