2 # Copyright (C) 2012 RĂ©mi Denis-Courmont
3 # This file is distributed under the same license as the vlc package.
5 if test -z "$1" ||
test -n "$2"; then
6 echo "Usage: $0 <file.pc>" >&2
7 echo "Merges the pkg-config Libs.private stanza into Libs stanza." >&2
11 exec <"$1" >"$1.tmp" ||
exit $?
18 priv
="${LINE#Libs.private:}"
19 if test "$pub" != "$LINE"; then
21 elif test "$priv" != "$LINE"; then
27 echo "Libs: $PUBLIC $PRIVATE"
29 mv -f -- "$1.tmp" "$1"