Workshop o mikrokontrolérech na SKSP 2024.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
348 B

3 months ago
#!/bin/bash
#
# A tool which builds a list of dependent libraries from the list
# of pkg-config files.
#
# (c) 2007 Martin Mares <mj@ucw.cz>, placed under GNU LGPL
#
set -e
shift
SEEN=
while [ -n "$1" ] ; do
case "$1" in
*.pc) if [ -n "$SEEN" ] ; then echo -n ", " ; fi
echo -n "`basename $1 .pc`"
SEEN=1
;;
*) ;;
esac
shift
done