# extract bbs file name
IN=$1
TMP="${IN##*/}"
-OUTPUT="${TMP%%.*}"
+BBS="${TMP%%.*}"
+OUTPUT="bb${BBS}"
+EXEC_FUNCTION="${BBS}"
echo Output=\"${OUTPUT}\"
WORKDIR=bbc_tmp
mkdir ${WORKDIR}
sed s,OUTPUT,${OUTPUT},g ${DATADIR}/CMakeLists.txt.in > ${WORKDIR}/CMakeLists.txt
-sed s,EXEC_FUNCTION,${OUTPUT},g ${DATADIR}/main.cxx.in > ${WORKDIR}/main.cxx
+sed s,EXEC_FUNCTION,${EXEC_FUNCTION},g ${DATADIR}/main.cxx.in > ${WORKDIR}/main.cxx
cd ${WORKDIR}
bbs2cpp ${IN}
cmake .
-cmake .
-cmake .
+#cmake .
+#cmake .
make
mv ${OUTPUT} ${CUR}/
cd ${CUR}
# Allow user to specify his own image, in GUI mode (-g option)
#---------------------------------------------------------------
-set reader.Filename "thorax.hdr"
-input In reader.Filename "Input file"
+set reader.Filename "hola.mhd"
+input I reader.Filename "Input image file"
new ImageProperties P
connect reader.Out P.In
-print "Type = $P.TypeName$\n"
-print "Dimension = $P.Dimension$\n"
-print "Size = $P.Size$\n"
-print "Spacing = $P.Spacing$\n"
+print "Type = $P.TypeName$"
+print "Dimension = $P.Dimension$"
+print "Size = $P.Size$"
+print "Spacing = $P.Spacing$"
#graph