Commit 03592303 authored by Vinicius Ruoso's avatar Vinicius Ruoso

Fixed the way we grab the SDI bar of generatebar script.

Before, we simple invoke generatebar script and expect that during all
generating proccess the bar will be the same. Running multiples instances
of generator.sh will destroy the SDI bar.

Now, we colect this information by generatebar and hold it.
Signed-off-by: default avatarVinicius Ruoso <vkr07@c3sl.ufpr.br>
parent 670f86a6
......@@ -48,6 +48,7 @@ main()
generatecolumnnames
printf " SDIBar"
source generatebar
BARFILE=$(generatebar)
echo "."
for TYPE in $TYPEDIR/*; do
......@@ -97,8 +98,7 @@ function generate()
printf "<div class=\"hide\" id=\"pagetype\">single</div>"
NAME=$(basename $1)
TITLE="$TYPENAME: $(basename $1|tr '_' ' ')"
cat $PREFIX/html/sdibar_generated.html |
sed "s/$NAME\/\">/$NAME\/\" selected=\"selected\">/g"
echo $BARFILE | sed "s/$NAME\/\">/$NAME\/\" selected=\"selected\">/g"
starttable "${TITLE}"
while read HOSTLINE; do
printf "<tr>"
......
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