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