2010-08-03 18:50:14 +00:00
|
|
|
#!/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 "***"
|
|
|
|
|
2014-09-26 14:41:38 +00:00
|
|
|
# Manually patch interface.c if not done yet.
|
2015-05-12 13:58:52 +00:00
|
|
|
if ! grep -q ASTMM_LIBC addons/mp3/interface.c; then
|
|
|
|
sed -i -e '/#include "asterisk.h"/i#define ASTMM_LIBC ASTMM_REDIRECT' \
|
2014-09-26 14:41:38 +00:00
|
|
|
addons/mp3/interface.c
|
|
|
|
fi
|
|
|
|
|
2010-08-03 18:50:14 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2010-10-02 18:06:35 +00:00
|
|
|
svn export http://svn.digium.com/svn/thirdparty/mp3/trunk addons/mp3 $@
|
2010-08-03 18:50:14 +00:00
|
|
|
|
2014-09-26 15:51:22 +00:00
|
|
|
# Manually patch interface.c if not done yet.
|
2015-05-12 13:58:52 +00:00
|
|
|
if ! grep -q ASTMM_LIBC addons/mp3/interface.c; then
|
|
|
|
sed -i -e '/#include "asterisk.h"/i#define ASTMM_LIBC ASTMM_REDIRECT' \
|
2014-09-26 15:51:22 +00:00
|
|
|
addons/mp3/interface.c
|
|
|
|
fi
|
2014-09-26 14:41:38 +00:00
|
|
|
|
2010-08-03 18:50:14 +00:00
|
|
|
exit 0
|