Commit 670f86a6 authored by Vinicius Ruoso's avatar Vinicius Ruoso

Fixed the way generatebar give the result.

Before, we was using a file to hold the generated bar during the
generating progress. This isn't good because if more than one stances
of generator.sh are running, the bar that pages will grab is undefined.

Now, we created a function that return the HTML content of the SDI bar.
So, then program that use the bar have a way to hold the value during all
generating proccess.
Signed-off-by: default avatarVinicius Ruoso <vkr07@c3sl.ufpr.br>
parent e2d6dcd5
BARHTML=$PREFIX/html/sdibar.html
BARFILE=$PREFIX/html/sdibar_generated.html
OPTIONS=""
main()
function generatebar()
{
if [ "$GENERATESUMMARY" == "true" ]; then
add_option sumary SUMARIO
......@@ -12,7 +11,7 @@ main()
add_option single "$TYPENAME/$(basename $TYPE)"
done
sed "s#(PAGES)#${OPTIONS}#g" $BARHTML > $BARFILE
sed "s#(PAGES)#${OPTIONS}#g" $BARHTML
}
function add_option()
......@@ -27,6 +26,4 @@ function add_option()
fi
}
main $*
# vim:tabstop=4:shiftwidth=4:encoding=utf-8:expandtab
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment