mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-03 04:16:43 +00:00 
			
		
		
		
	Some versions of SVN seemingly don't follow the redirect to https. Change-Id: Ia7c76c18cb620bcf56f08e1211a7d80d321fe253
		
			
				
	
	
		
			27 lines
		
	
	
		
			725 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			725 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh -e
 | 
						|
 | 
						|
if [ -f addons/mp3/mpg123.h ]; then
 | 
						|
    echo "***"
 | 
						|
    echo "The MP3 source code appears to already be present and does not"
 | 
						|
    echo "need to be downloaded."
 | 
						|
    echo "***"
 | 
						|
 | 
						|
    # Manually patch interface.c if not done yet.
 | 
						|
    if ! grep -q ASTMM_LIBC addons/mp3/interface.c; then
 | 
						|
        sed -i -e '/#include "asterisk.h"/i#define ASTMM_LIBC ASTMM_REDIRECT' \
 | 
						|
            addons/mp3/interface.c
 | 
						|
    fi
 | 
						|
 | 
						|
    exit 1
 | 
						|
fi
 | 
						|
 | 
						|
svn export https://svn.digium.com/svn/thirdparty/mp3/trunk addons/mp3 $@
 | 
						|
 | 
						|
# Manually patch interface.c if not done yet.
 | 
						|
if ! grep -q ASTMM_LIBC addons/mp3/interface.c; then
 | 
						|
    sed -i -e '/#include "asterisk.h"/i#define ASTMM_LIBC ASTMM_REDIRECT' \
 | 
						|
        addons/mp3/interface.c
 | 
						|
fi
 | 
						|
 | 
						|
exit 0
 |