compare-lib-lists revision 1.1
11.1Schristos#!/bin/sh
21.1Schristos# $NetBSD: compare-lib-lists,v 1.1 2019/08/10 12:50:36 christos Exp $
31.1Schristos#
41.1Schristos# Q+D script to print the library lists for compariston between whats in the
51.1Schristos# bsd.prog.mk file and bsd.README
61.1Schristos
71.1Schristosprog=$(basename "$0")
81.1Schristos
91.1SchristosRD=/tmp/${prog}.rd.$$
101.1SchristosMK=/tmp/${prog}.mk.$$
111.1Schristos
121.1Schristostrap "rm -f ${MK} ${RD}" 0 1 2 3 15
131.1Schristos
141.1Schristosmake -f - all << \EOF > ${MK}
151.1Schristos.include <bsd.prog.mk>
161.1Schristos
171.1Schristosall:
181.1Schristos.for l in ${_LIBLIST}
191.1Schristos	@echo $l
201.1Schristos.endfor
211.1Schristos.for l in crt0.o crti.o crti.o crtn.o
221.1Schristos	@echo $l
231.1Schristos.endfor
241.1Schristos.for l in ${_X11LIBLIST}
251.1Schristos	@echo $l
261.1Schristos.endfor
271.1SchristosEOF
281.1Schristos
291.1Schristosgrep '	LIB' bsd.README | \
301.1Schristos    grep DESTDIR | \
311.1Schristos    sed -e 's/.*lib\([a-zA-Z0-9_+\-]*\)\.a$/\1/' > ${RD}
321.1Schristos
331.1Schristospaste ${MK} ${RD}
34