mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-29 15:36:13 +00:00 
			
		
		
		
	As per the comments in this file..
The last patch was slightly wrong. This'll get it for sure. Solaris (and some others) don't have sed -r. perl -p is equivalent git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41015 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -13,13 +13,20 @@ if [ ! -d $PPATH ]; then | |||||||
|   exit |   exit | ||||||
| fi | fi | ||||||
|  |  | ||||||
|  | #Solaris (and some others) don't have sed -r.  perl -p is equivalent | ||||||
|  | if [[ `echo "xxx" | sed -r 's/x/y/g' 2>/dev/null | grep -c "yyy"` != 0 ]]; then | ||||||
|  |     EXTREGEX="sed -r -e" | ||||||
|  | else | ||||||
|  |     EXTREGEX="perl -pe" | ||||||
|  | fi | ||||||
|  |  | ||||||
| ## Clean out CFLAGS for the spec file. | ## Clean out CFLAGS for the spec file. | ||||||
|  |  | ||||||
| LOCAL_CFLAGS=`echo $CFLAGS | sed -e 's/[[:space:]]*-pipe[[:space:]]*//g' | sed -e 's/-[Wmp][^[:space:]]*[[:space:]]*//g' | \ | LOCAL_CFLAGS=`echo $CFLAGS | ${EXTREGEX} 's/\s*-pipe\s*//g' | ${EXTREGEX} 's/-[Wmp]\S*\s*//g' | \ | ||||||
|   sed -e 's/-I\(include|\.\.\/include\) //g' | \ |   ${EXTREGEX} 's/-I(include|\.\.\/include) //g' | \ | ||||||
|   sed -e 's/-DINSTALL_PREFIX=[^[:space:]]* //g' | \ |   ${EXTREGEX} 's/-DINSTALL_PREFIX=\S* //g' | \ | ||||||
|   sed -e 's/-DASTERISK_VERSION=[^[:space:]]* //g' | \ |   ${EXTREGEX} 's/-DASTERISK_VERSION=\S* //g' | \ | ||||||
|   sed -e 's/-DAST\(ETCDIR|LIBDIR|VARLIBDIR|VARRUNDIR|SPOOLDIR|LOGDIR|CONFPATH|MODDIR|AGIDIR\)=[^[:space:]]* //g'` |   ${EXTREGEX} 's/-DAST(ETCDIR|LIBDIR|VARLIBDIR|VARRUNDIR|SPOOLDIR|LOGDIR|CONFPATH|MODDIR|AGIDIR)=\S* //g'` | ||||||
|  |  | ||||||
|  |  | ||||||
| cat <<EOF > $PPATH/asterisk.pc | cat <<EOF > $PPATH/asterisk.pc | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user