projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f83c5cf
)
Fix build-mingw32.sh for CROSS_PKG_CONFIG_DIR without *.pc files
author
Hib Eris
<hib@hiberis.nl>
Mon, 14 Jun 2010 16:42:20 +0000
(18:42 +0200)
committer
Zoltan Varga
<vargaz@gmail.com>
Tue, 8 Feb 2011 14:00:33 +0000
(15:00 +0100)
build-mingw32.sh
patch
|
blob
|
history
diff --git
a/build-mingw32.sh
b/build-mingw32.sh
index e16e95f26371dea620e1425571029118532dcbaa..966aa471c3982d21c2a5222de0d37cbaa3d01fee 100755
(executable)
--- a/
build-mingw32.sh
+++ b/
build-mingw32.sh
@@
-51,8
+51,10
@@
function setup ()
if [ -d "$CROSS_PKG_CONFIG_DIR" ]; then
install -d -m 755 "$TEMPORARY_PKG_CONFIG_DIR"
for pc in "$CROSS_PKG_CONFIG_DIR"/*.pc; do
if [ -d "$CROSS_PKG_CONFIG_DIR" ]; then
install -d -m 755 "$TEMPORARY_PKG_CONFIG_DIR"
for pc in "$CROSS_PKG_CONFIG_DIR"/*.pc; do
- pcname="`basename $pc`"
- sed -e "s;^prefix=.*;prefix=$CROSS_DIR;g" < $pc > "$TEMPORARY_PKG_CONFIG_DIR"/$pcname
+ if [ -f $pc ]; then
+ pcname="`basename $pc`"
+ sed -e "s;^prefix=.*;prefix=$CROSS_DIR;g" < $pc > "$TEMPORARY_PKG_CONFIG_DIR"/$pcname
+ fi;
done
CROSS_PKG_CONFIG_DIR="$TEMPORARY_PKG_CONFIG_DIR"
fi
done
CROSS_PKG_CONFIG_DIR="$TEMPORARY_PKG_CONFIG_DIR"
fi