Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXTZGZoReX <xtzgzorex@gmail.com>2011-07-19 16:02:05 +0400
committerXTZGZoReX <xtzgzorex@gmail.com>2011-07-19 16:03:54 +0400
commit0426a24b8f0a804331e2a7cc4cebd7267b081d5e (patch)
treedbf5e4e660b611b108524752a051f884841b6091 /configure
parent522513aec0fc6f522a4d2b418c44675058319d79 (diff)
Don't copy *.pc files if they don't exist.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 6 insertions, 4 deletions
diff --git a/configure b/configure
index ff1256f2a8..5ca1c51bc8 100755
--- a/configure
+++ b/configure
@@ -173,10 +173,12 @@ create_local_config ()
# Copy the .pc file to local-config, and set the base lib directory
mkdir -p local-config
builddir=`pwd`/$path/build
- for f in `ls $1/*.pc.in` ; do
- pcfile=`echo $f | sed s,.*/,, | sed s/\.in$//`
- sed -e s,libdir=.*,libdir=$builddir, -e s/@VERSION@/$ver/g $f> local-config/$pcfile
- done
+ if test -a $1/*.pc.in; then
+ for f in `ls $1/*.pc.in` ; do
+ pcfile=`echo $f | sed s,.*/,, | sed s/\.in$//`
+ sed -e s,libdir=.*,libdir=$builddir, -e s/@VERSION@/$ver/g $f> local-config/$pcfile
+ done
+ fi
# Generate the .addins file for the package
addins=local-config/`echo $path | sed s,/,_,`.addins