summaryrefslogtreecommitdiff
path: root/build_tools
diff options
context:
space:
mode:
authorJason Parker <jparker@digium.com>2006-08-24 01:21:41 +0000
committerJason Parker <jparker@digium.com>2006-08-24 01:21:41 +0000
commit2986a59faba6f0d4bbf4f14e351bad3f51aaa506 (patch)
tree334e5b6accc0b2f4dd4f3573db0d0ad9b493c97b /build_tools
parent8b3aeaeae6254437e6aa5e103af0d49f7c544295 (diff)
Okay, there are 3 reasons why I'm doing this.
1) Solaris sed doesn't have -r, which means things like \s and \S don't work. 2) GNU sed version 4.1.2 failed on a very simple test echo "Test Test" | sed -r -e 's/\s/x/g' should have returned "TestxxxTest", but did not (however, 4.1.4 did?). 3) The CFLAGS were never set, so that entire line actually did nothing. Now it's useful again. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40964 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'build_tools')
-rwxr-xr-xbuild_tools/mkpkgconfig10
1 files changed, 5 insertions, 5 deletions
diff --git a/build_tools/mkpkgconfig b/build_tools/mkpkgconfig
index 0ae2a24bf..bc04f7561 100755
--- a/build_tools/mkpkgconfig
+++ b/build_tools/mkpkgconfig
@@ -15,11 +15,11 @@ fi
## Clean out CFLAGS for the spec file.
-LOCAL_CFLAGS=`echo $CFLAGS | sed -e 's/\s*-pipe\s*//g' | sed -e 's/-[Wmp]\S*\s*//g' | \
- sed -r -e 's/-I(include|\.\.\/include) //g' | \
- sed -e 's/-DINSTALL_PREFIX=\S* //g' | \
- sed -r -e 's/-DASTERISK_VERSION=\S* //g' | \
- sed -r -e 's/-DAST(ETCDIR|LIBDIR|VARLIBDIR|VARRUNDIR|SPOOLDIR|LOGDIR|CONFPATH|MODDIR|AGIDIR)=\S* //g'`
+LOCAL_CFLAGS=`echo $CFLAGS | sed -e 's/[[:space:]]*-pipe[[:space:]]*//g' | sed -e 's/-[Wmp][^[:space:]]*[[:space:]]*//g' | \
+ sed -e 's/-I\(include|\.\.\/include\) //g' | \
+ sed -e 's/-DINSTALL_PREFIX=[^[:space:]]* //g' | \
+ sed -e 's/-DASTERISK_VERSION=[^[:space:]]* //g' | \
+ sed -e 's/-DAST\(ETCDIR|LIBDIR|VARLIBDIR|VARRUNDIR|SPOOLDIR|LOGDIR|CONFPATH|MODDIR|AGIDIR\)=[^[:space:]]* //g'`
cat <<EOF > $PPATH/asterisk.pc