mkindexr.sh

 

###
### mkindexr.sh
###
###



DIR=`pwd`

echo "<html> " > index.html
echo "<head> " >> index.html
echo "   <title> HelloWorld Portlet </title> " >> index.html
echo "<LINK href=\"http://www.setgetweb.com/p/white.css\" rel=\"stylesheet\" type=\"text/css\">" >> index.html
echo "</head> " >> index.html
echo "<body> " >> index.html
echo " " >> index.html
echo "<font class=grey2> " >> index.html
echo " " >> index.html
echo "<blockquote> " >> index.html
echo " " >> index.html
echo "<p>&nbsp;</p> " >> index.html
echo "<center> " >> index.html
echo "   <h2> HelloWorld Portlet </h2> " >> index.html
echo "<p>&nbsp;</p>" >> index.html
echo "<FORM METHOD=get ACTION=\"/cgi-bin/search_rational.cgi\">" >> index.html
echo "   <INPUT TYPE=\"text\" NAME=\"terms\">" >> index.html
echo "   <INPUT TYPE=\"submit\" value=\"Search CBO\">" >> index.html
echo "</FORM>" >> index.html
echo "</center> " >> index.html
echo " " >> index.html
echo " " >> index.html
echo " " >> index.html
echo " " >> index.html
echo "<p>&nbsp;</p>" >> index.html
echo "<p><hr> " >> index.html
echo "<pre>" >> index.html

ls -1R | grep -v \.sh >> index.html

echo "</pre>" >> index.html
echo " <p><hr> " >> index.html
echo "  " >> index.html
echo " <p>&nbsp;</p> " >> index.html
echo " <p>&nbsp;</p> " >> index.html
echo " <p>&nbsp;</p> " >> index.html
echo " <p>&nbsp;</p> " >> index.html
echo "  " >> index.html
echo " </blockquote> " >> index.html
echo "  " >> index.html
echo " <center> " >> index.html
echo " <script javascript=\"JavaScript\"> " >> index.html
echo "     document.write(\"<br>Last updated: \"+document.lastModified); " >> index.html
echo " </script> " >> index.html
echo "  " >> index.html
echo "  " >> index.html
echo " </center> " >> index.html
echo "  " >> index.html
echo "    </body> " >> index.html
echo " </html> " >> index.html


### Convert .java files to html
for i in `find . -name \*.java -print`
do
    x=`dirname $i`
    cd $x
    y=`basename $i`
    convertp.sh $y
    mklinklist.sh $DIR html
    sh ./linklist.sh
    rm *.out
    cd $DIR
done

### Convert .jsp files to html
for i in `find . -name \*.jsp -print`
do
    x=`dirname $i`
    cd $x
    y=`basename $i`
    convertp.sh $y
    mklinklist.sh $DIR html
    sh ./linklist.sh
    rm *.out
    cd $DIR
done


### Convert .xml files to html
for i in `find . -name \*.xml -print`
do
    x=`dirname $i`
    cd $x
    y=`basename $i`
    convertp.sh $y
    mklinklist.sh $DIR html
    sh ./linklist.sh
    rm *.out
    cd $DIR
done

### Convert .xmi files to html
for i in `find . -name \*.xmi -print`
do
    x=`dirname $i`
    cd $x
    y=`basename $i`
    convertp.sh $y
    mklinklist.sh $DIR html
    sh ./linklist.sh
    rm *.out
    cd $DIR
done

### Convert .MF files to html
for i in `find . -name \*.MF -print`
do
    x=`dirname $i`
    cd $x
    y=`basename $i`
    convertp.sh $y
    mklinklist.sh $DIR html
    sh ./linklist.sh
    rm *.out
    cd $DIR
done

for i in `find . -name \*.jar -print`
do
    x=`dirname $i`
    cd $x
    y=`basename $i`
    mklinklist.sh $DIR jar
    sh ./linklist.sh
    rm *.out
    cd $DIR
done