mirror of
https://develop.openfoam.com/Development/ThirdParty-common.git
synced 2025-12-08 06:57:50 +00:00
BUG: pkgconfigPrefix calling the incorrect backend
ENH: avoid editing pkgconfig symlinks
This commit is contained in:
@ -76,7 +76,7 @@ do
|
||||
usage
|
||||
;;
|
||||
*)
|
||||
pkgconfigAdjust "$1"
|
||||
pkgconfigNewPrefix "$1"
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
|
||||
@ -281,7 +281,7 @@ pkgconfigNewPrefix()
|
||||
[ -d "$dir/$libdir" ] || continue
|
||||
for i in $dir/$libdir/*.pc
|
||||
do
|
||||
if [ -f "$i" ]
|
||||
if [ -f "$i" -a ! -L "$i" ]
|
||||
then
|
||||
nfiles="x$nfiles"
|
||||
sed -i -e 's@^\(prefix=\).*$@\1'"$dir@" $i
|
||||
@ -329,7 +329,7 @@ pkgconfigAdjust()
|
||||
[ -d "$dir/$libdir" ] || continue
|
||||
for i in $dir/$libdir/*.pc
|
||||
do
|
||||
if [ -f "$i" ]
|
||||
if [ -f "$i" -a ! -L "$i" ]
|
||||
then
|
||||
nfiles="x$nfiles"
|
||||
sed -i \
|
||||
|
||||
Reference in New Issue
Block a user