1#!/bin/sh 2# $NetBSD: compare-lib-lists,v 1.1 2019/08/10 12:50:36 christos Exp $ 3# 4# Q+D script to print the library lists for compariston between whats in the 5# bsd.prog.mk file and bsd.README 6 7prog=$(basename "$0") 8 9RD=/tmp/${prog}.rd.$$ 10MK=/tmp/${prog}.mk.$$ 11 12trap "rm -f ${MK} ${RD}" 0 1 2 3 15 13 14make -f - all << \EOF > ${MK} 15.include <bsd.prog.mk> 16 17all: 18.for l in ${_LIBLIST} 19 @echo $l 20.endfor 21.for l in crt0.o crti.o crti.o crtn.o 22 @echo $l 23.endfor 24.for l in ${_X11LIBLIST} 25 @echo $l 26.endfor 27EOF 28 29grep ' LIB' bsd.README | \ 30 grep DESTDIR | \ 31 sed -e 's/.*lib\([a-zA-Z0-9_+\-]*\)\.a$/\1/' > ${RD} 32 33paste ${MK} ${RD} 34