mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	Fix installation into directories containing spaces.
This also vastly simplifies the logic in sounds/Makefile (Closes issue ASTERISK-18290) Reported by: Paul Belanger Review: https://reviewboard.asterisk.org/r/1379/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@333201 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -1,5 +1,5 @@ | ||||
| #!/bin/sh | ||||
| PPATH=$1 | ||||
| PPATH="$1" | ||||
| ## Make sure we were called from Makefile | ||||
|  | ||||
| if [ "x$ASTERISKVERSIONNUM" = "x" ]; then | ||||
| @@ -9,7 +9,7 @@ fi | ||||
|  | ||||
| ## Create a pkgconfig spec file for 3rd party modules (pkg-config asterisk --cflags) | ||||
|  | ||||
| if [ ! -d $PPATH ]; then | ||||
| if [ ! -d "$PPATH" ]; then | ||||
|   exit | ||||
| fi | ||||
|  | ||||
| @@ -29,7 +29,7 @@ LOCAL_CFLAGS=`echo $CFLAGS | ${EXTREGEX} 's/\s*-pipe\s*//g' | ${EXTREGEX} 's/-[W | ||||
|   ${EXTREGEX} 's/-DAST(ETCDIR|LIBDIR|VARLIBDIR|VARRUNDIR|SPOOLDIR|LOGDIR|CONFPATH|MODDIR|AGIDIR)=\S* //g'` | ||||
|  | ||||
|  | ||||
| cat <<EOF > $PPATH/asterisk.pc | ||||
| cat <<EOF > "$PPATH/asterisk.pc" | ||||
| install_prefix=$INSTALL_PREFIX | ||||
| version_number=$ASTERISKVERSIONNUM | ||||
| etcdir=$ASTETCDIR | ||||
|   | ||||
		Reference in New Issue
	
	Block a user