1#!/bin/sh -e
2#
3# Copyright (c) 2002 Ruslan Ermilov, The FreeBSD Project
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:
--- 10 unchanged lines hidden (view full) ---
19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25# SUCH DAMAGE.
26#
27# $FreeBSD: head/tools/make_libdeps.sh 247779 2013-03-04 11:27:41Z bapt $
28
29export PATH=/bin:/usr/bin
30
31FS=': ' # internal field separator
32LIBDEPENDS=./_libdeps # intermediate output file
33USRSRC=${1:-/usr/src} # source root
34LIBS="
35 lib
--- 6 unchanged lines hidden (view full) ---
42
43# This sed(1) filter is used to convert -lfoo to path/to/libfoo.
44#
45SED_FILTER="
46sed -E
47 -e's; ;! ;g'
48 -e's;$;!;'
49 -e's;-lbsdxml!;lib/libexpat;g'
50 -e's;-lbsdyml!;lib/libyaml;g'
51 -e's;-lpthread!;lib/libthr;g'
52 -e's;-lm!;lib/msun;g'
53 -e's;-l(ncurses|termcap)!;lib/ncurses/ncurses;g'
54 -e's;-l(gcc)!;gnu/lib/lib\1;g'
55 -e's;-lssp_nonshared!;gnu/lib/libssp/libssp_nonshared;g'
56 -e's;-l(asn1|hdb|kdc|heimbase|heimntlm|heimsqlite|hx509|krb5|roken|wind)!;kerberos5/lib/lib\1;g'
57 -e's;-l(crypto|ssh|ssl)!;secure/lib/lib\1;g'
58 -e's;-l([^!]+)!;lib/lib\1;g'
--- 62 unchanged lines hidden ---
2#
3# Copyright (c) 2002 Ruslan Ermilov, The FreeBSD Project
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:
--- 10 unchanged lines hidden (view full) ---
19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25# SUCH DAMAGE.
26#
27# $FreeBSD: head/tools/make_libdeps.sh 247779 2013-03-04 11:27:41Z bapt $
28
29export PATH=/bin:/usr/bin
30
31FS=': ' # internal field separator
32LIBDEPENDS=./_libdeps # intermediate output file
33USRSRC=${1:-/usr/src} # source root
34LIBS="
35 lib
--- 6 unchanged lines hidden (view full) ---
42
43# This sed(1) filter is used to convert -lfoo to path/to/libfoo.
44#
45SED_FILTER="
46sed -E
47 -e's; ;! ;g'
48 -e's;$;!;'
49 -e's;-lbsdxml!;lib/libexpat;g'
50 -e's;-lbsdyml!;lib/libyaml;g'
51 -e's;-lpthread!;lib/libthr;g'
52 -e's;-lm!;lib/msun;g'
53 -e's;-l(ncurses|termcap)!;lib/ncurses/ncurses;g'
54 -e's;-l(gcc)!;gnu/lib/lib\1;g'
55 -e's;-lssp_nonshared!;gnu/lib/libssp/libssp_nonshared;g'
56 -e's;-l(asn1|hdb|kdc|heimbase|heimntlm|heimsqlite|hx509|krb5|roken|wind)!;kerberos5/lib/lib\1;g'
57 -e's;-l(crypto|ssh|ssl)!;secure/lib/lib\1;g'
58 -e's;-l([^!]+)!;lib/lib\1;g'
--- 62 unchanged lines hidden ---