f846ca5dca
related files. Partition into three categories: * shl.mi -- MI sharedlib files present on all ports with shared libs * shl.aout -- MI sharedlib files present on all ELF ports * shl.elf -- MI sharedlib files present on all a.out ports Add rudimentary shl* support to makeflist. Remove files left empty after shlib normalization. Add ad.mips where appropriate. Make libc, libedit numbers consistent (libc.so.12.29, libedit.2.1).
93 lines
2.0 KiB
Bash
Executable File
93 lines
2.0 KiB
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $NetBSD: makeflist,v 1.9 1998/07/02 06:36:35 jonathan Exp $
|
|
#
|
|
# Print out the files in some or all lists.
|
|
# Usage: makeflist [-b] [-x] [-a arch] [-m machine] [-s setsdir] [setname ...]
|
|
#
|
|
|
|
# set defaults
|
|
machine=${MACHINE:-`printf 'xxx:\n\techo ${MACHINE}' | make -s -f-`}
|
|
arch=${MACHINE_ARCH:-`printf 'xxx:\n\techo ${MACHINE_ARCH}' | make -s -f-`}
|
|
setd=`pwd`
|
|
nlists="base comp etc games man misc text"
|
|
xlists="xbase xcomp xcontrib xfont xserver"
|
|
lists=$nlists
|
|
|
|
# handle args
|
|
while : ; do
|
|
case $1 in
|
|
-b*)
|
|
lists="$xlists $nlists"
|
|
;;
|
|
-x*)
|
|
lists=$xlists
|
|
;;
|
|
-a*)
|
|
arch=$2; shift
|
|
;;
|
|
-m*)
|
|
machine=$2; shift
|
|
;;
|
|
-s*)
|
|
setd=$2; shift
|
|
;;
|
|
-*)
|
|
cat 1>&2 <<USAGE
|
|
Usage: $0 [-b] [-x] [-a arch] [-m machine] [-s setsdir] [setname ...]
|
|
-b make netbsd + x11 lists
|
|
-x only make x11 lists
|
|
-a arch set arch (e.g, m68k, mips, powerpc) [$arch]
|
|
-m machine set machine (e.g, amiga, i386, macppc) [$machine]
|
|
-s setsdir directory to find sets [$setd]
|
|
[setname ...] sets to build [$lists]
|
|
USAGE
|
|
exit 1
|
|
;;
|
|
*)
|
|
break
|
|
;;
|
|
esac
|
|
shift
|
|
done
|
|
if [ -n "$1" ]; then
|
|
lists="$@"
|
|
fi
|
|
|
|
# Compute toolchain used on target cpu.
|
|
if [ "$machine" = "vax" ]; then
|
|
shlib=
|
|
elif [ "$arch" = "mips" -o "$machine" = "alpha" ]; then
|
|
shlib=elf
|
|
else
|
|
shlib=aout
|
|
fi
|
|
|
|
# EXTRA SPECIAL (not done here): secr
|
|
|
|
for setname in $lists; do
|
|
cat $setd/lists/$setname/mi
|
|
if [ "$machine" != "$cpu" -a -f $setd/lists/$setname/ad.${arch} ]; then
|
|
cat $setd/lists/$setname/ad.${arch}
|
|
fi
|
|
if [ -f $setd/lists/$setname/md.${machine} ]; then
|
|
cat $setd/lists/$setname/md.${machine}
|
|
fi
|
|
if [ "$shlib" != "" ]; then
|
|
if [ -f $setd/lists/$setname/shl.mi ]; then
|
|
cat $setd/lists/$setname/shl.mi
|
|
fi
|
|
if [ -f $setd/lists/$setname/shl.${shlib} ]; then
|
|
cat $setd/lists/$setname/shl.${shlib}
|
|
fi
|
|
fi
|
|
|
|
# Split man/md_share into: this machine, other machine
|
|
if [ $setname = man ]; then
|
|
grep ${machine} $setd/lists/man/md_share
|
|
fi
|
|
if [ $setname = misc ]; then
|
|
grep -v ${machine} $setd/lists/man/md_share
|
|
fi
|
|
done | sort -u
|