From: Heiko Z. <smi...@us...> - 2004-06-02 19:01:00
|
Update of /cvsroot/devil-linux/scripts/webtools In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27079 Modified Files: generate_docs_from_cvs Log Message: we don't need shtml any more Index: generate_docs_from_cvs =================================================================== RCS file: /cvsroot/devil-linux/scripts/webtools/generate_docs_from_cvs,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- generate_docs_from_cvs 2 Jun 2004 18:46:48 -0000 1.13 +++ generate_docs_from_cvs 2 Jun 2004 19:00:49 -0000 1.14 @@ -85,53 +85,6 @@ # clean up behind us rm -rf ${MODULE%%/*} output.html - - # add an entry to the submenu file so a link to this version - # of the documentation shows up in the navigation[C - echo -n creating submenu entry... - cat >> ${THIS_SUBMENU} <<-EOF - <p class="menu"> <!--#if expr="\${SECTION} != ${THIS_WEB_PATH}" --><a href="/${THIS_WEB_PATH}/"><!--#endif -->Version ${version}<!--#if expr="\${SECTION} != ${THIS_WEB_PATH}" --></a><!--#endif --></p> -EOF - echo done. - - # post processing - echo postprocessing: - for FILE in $(ls -1 ${THIS_DOCU_PATH}/*.html); do - SRC_FILE=${FILE##*/} - THIS_PAGE=${SRC_FILE%\.*} - DST_FILE=${THIS_PAGE}.shtml - CONTENT_FILE=content_${DST_FILE} - HEAD_FILE=head_${DST_FILE} - - echo " * ${SRC_FILE} -> ${DST_FILE}, ${HEAD_FILE}, ${CONTENT_FILE}" - - # filter source file and replace all local - # references to xxx.html with xxx.shtml - sed -e 's|\("[a-z0-9]\+\)\.html\(\(#[a-z0-9]\+\)\?"\)|\1.shtml\2|g' \ - <${THIS_DOCU_PATH}/${SRC_FILE} \ - >${THIS_DOCU_PATH}/${SRC_FILE}.2 - mv ${THIS_DOCU_PATH}/${SRC_FILE}.2 ${THIS_DOCU_PATH}/${SRC_FILE} - - # the "right frame" - perl -e '$_=join("",<STDIN>); s|^.*<body[^>]*>||is; s|</body>.*$||is; print $_' \ - <${THIS_DOCU_PATH}/${SRC_FILE} \ - >${THIS_DOCU_PATH}/${CONTENT_FILE} - - # the head section - perl -e '$_=join("",<STDIN>); s|^.*<head>||is; s|</head>.*$||is; print $_' \ - <${THIS_DOCU_PATH}/${SRC_FILE} \ - >${THIS_DOCU_PATH}/${HEAD_FILE} - - # this file will put head, content and central navigation together - cat > ${THIS_DOCU_PATH}/${DST_FILE} <<-EOF - <!--#set var="THIS_PAGE" value="${THIS_PAGE}" --><!--#set var="SECTION" value="${THIS_WEB_PATH}" --><!--#set var="SUBMENU" value="${THIS_SUBMENU_PATH}" --><!--#include virtual="../../index.shtml" --> -EOF - - # file processed therefore we don't need it anymore - rm -f ${THIS_DOCU_PATH}/${SRC_FILE} - - done - } cd /home/groups/d/de/devil-linux || exit 1 |