2 # Package: RN Makefile System Utility
4 # Desc: Overwrite doxygen's generated index.html with tailored version.
5 # Usage: doxyindex.sh -t <title> -h <doxyheader>
8 # /*! \cond RNMAKE_DOXY*/
17 # Get options. Note: first colon says that getopts will not print errors.
19 while getopts :${optstr} opt
24 h) header="$OPTARG" ;;
26 *) echo "rnmake: $0: error: Unknown opt: $opt"; exit 2;;
30 shift $(($OPTIND - 1))
32 if [ "${title}" = "" ]
34 echo "rnmake: $0: error: No title specfied"
38 if [ "${header}" = "" ]
40 echo "rnmake: $0: error: No package header specified"
48 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
52 # Header contains the expected html structure.
53 # <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
60 # Remove any <DOCTYPE> and <title> elements and the trailing </head> and
63 cat ${header} | grep -vi -E "<!DOCTYPE.*>|<title>|</head>|<body.*>"
66 # Add specified title and ending index frameset
69 <title>${title}</title>
71 <frameset cols="250,*">
72 <frame src="tree.html" name="treefrm">
73 <frame src="main.html" name="basefrm">
75 <a href="main.html">Frames are disabled. Click here to go to the main page.</a>
83 #/*! \endcond RNMAKE_DOXY */