Merged revisions 80330 via svnmerge from
[asterisk/asterisk.git] / build_tools / make_buildopts_h
1 #!/bin/sh
2
3 cat << END
4 /*
5  * buildopts.h 
6  * Automatically generated
7  */
8
9 END
10 TMP=`${GREP} MENUSELECT_CFLAGS menuselect.makeopts | sed 's/MENUSELECT_CFLAGS\=//g' | sed 's/-D//g'`
11 for x in ${TMP}; do
12         echo "#define ${x} 1"
13 done
14 TMP=`${GREP} MENUSELECT_BUILD_DEPS menuselect.makeopts | sed 's/MENUSELECT_BUILD_DEPS\=//g'`
15 for x in ${TMP}; do
16         x2=`echo ${x} | tr a-z A-Z`
17         echo "#define AST_MODULE_${x2} 1"
18 done
19 if ${GREP} AST_DEVMODE makeopts | ${GREP} -q yes
20 then
21         echo "#define AST_DEVMODE 1"
22 fi