8 echo "usage : bbc <input bbs file>"
17 BINPATH=$(echo ${TMP#*/}|rev)
19 DATADIR=${BINPATH}/@bbc_DATA_REL_PATH_FROM_BIN@
21 # extract bbs file name
26 EXEC_FUNCTION="${BBS}"
27 #echo Output=\"${OUTPUT}\"
32 sed s,OUTPUT,${OUTPUT},g ${DATADIR}/CMakeLists.txt.in > ${WORKDIR}/CMakeLists.txt
33 sed s,EXEC_FUNCTION,${EXEC_FUNCTION},g ${DATADIR}/main.cxx.in > ${WORKDIR}/main.cxx
35 ${BINPATH}/bbs2cpp ${IN} > log.txt
36 cmake . @bbc_CMAKE_OPTION_FOR_BUILD_TREE@ > log.txt