Commit e6ea4f0b authored by Vinicius Ruoso's avatar Vinicius Ruoso

Included the SDI bar on generation proccess.

Before starting generating pages, the generatebar script is called.

When generating each page, we add the generated SDI bar html and the div
element for javascript, indicating that this is a single page.
Signed-off-by: default avatarVinicius Ruoso <>
parent 3f1ad722
......@@ -44,8 +44,10 @@ main()
NETSTAT="$(netstat -n --tcp --ip|grep ':22'|grep ESTAB)"
printf "Generating:\n"
printf " ColumnNames"
printf " ColumnNames\n"
printf " SDIBar"
source generatebar
echo "."
for TYPE in $TYPEDIR/*; do
......@@ -91,8 +93,12 @@ function generate()
START="$(date +%X)"
exec > $TMP
cat $PREFIX/html/header.html
cat $PREFIX/html/header.html
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"
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