]> mj.ucw.cz Git - libucw.git/blob - build/lib-deps
The rest of sighandler separation
[libucw.git] / build / lib-deps
1 #!/bin/bash
2 #
3 # A tool which builds a list of dependent libraries from the list
4 # of pkg-config files.
5 #
6 # (c) 2007 Martin Mares <mj@ucw.cz>, placed under GNU LGPL
7 #
8
9 set -e
10
11 shift
12 SEEN=
13 while [ -n "$1" ] ; do
14         case "$1" in
15                 *.pc)   if [ -n "$SEEN" ] ; then echo -n ", " ; fi
16                         echo -n "`basename $1 .pc`"
17                         SEEN=1
18                         ;;
19                 *)      ;;
20         esac
21         shift
22 done