[asterisk-commits] rmudgett: trunk r424039 - /trunk/contrib/scripts/get_mp3_source.sh
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Sep 26 10:51:25 CDT 2014
Author: rmudgett
Date: Fri Sep 26 10:51:22 2014
New Revision: 424039
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=424039
Log:
format_mp3: Made the get script conditionally apply patch if not already there.
Modified:
trunk/contrib/scripts/get_mp3_source.sh
Modified: trunk/contrib/scripts/get_mp3_source.sh
URL: http://svnview.digium.com/svn/asterisk/trunk/contrib/scripts/get_mp3_source.sh?view=diff&rev=424039&r1=424038&r2=424039
==============================================================================
--- trunk/contrib/scripts/get_mp3_source.sh (original)
+++ trunk/contrib/scripts/get_mp3_source.sh Fri Sep 26 10:51:22 2014
@@ -17,8 +17,10 @@
svn export http://svn.digium.com/svn/thirdparty/mp3/trunk addons/mp3 $@
-# Manually patch interface.c.
-sed -i -e '/#include "asterisk.h"/i#define WRAP_LIBC_MALLOC' \
- addons/mp3/interface.c
+# Manually patch interface.c if not done yet.
+if ! grep -q WRAP_LIBC_MALLOC addons/mp3/interface.c; then
+ sed -i -e '/#include "asterisk.h"/i#define WRAP_LIBC_MALLOC' \
+ addons/mp3/interface.c
+fi
exit 0
More information about the asterisk-commits
mailing list