Contents 
 Index 
 "Shell Script Reference" 
 < Previous 
 Next > 

50_nav_update.b

Go to the documentation of this file.
00001 // This file has been modified on-the-fly with an input filter
00002 // to change it from shell syntax to C++ strictly for the purposes
00003 // of faking out Doxygen. Modifications include:
00004 
00005 // - changing # comments to C++ comments.
00006 // - ...
00007 
00008 // If you see other strangeness in the HTML version of the script file,
00009 // it comes from getting it to look more C++ like.
00010 
00011 
00012 /////////////////////////////////////////////////////////////////////////////////
00013 //// $Id: 50_nav_update.b,v 1.3 2002/12/24 21:33:08 gmaxe Exp $
00014 ////
00015 /** @file
00016  ** @brief Recreates the entire master TOC and index for the system.
00017  **
00018  ** This calls either 55_nav_gen.b or 55_nav_cp.b to make sure that all
00019  ** mini-TOC and mini-index files have been generated for all specified
00020  ** sub-projects and have been copied into the proper location for
00021  ** subsequent process by 56_master_index.b and 56_master_script.b.
00022  ** 
00023  ** In addition, the 55_nav_gen.b calls make sure that all HTML pages
00024  ** are consistent with respect to their top/bottom navigation, copyright
00025  ** notices, and other HTML internals (e.g., CSS callout, java applet).
00026  ** 
00027  ** @lim This file need to be maintained for each bigger project whenever
00028  ** sub-projects are added or removed.
00029  ** Also, this script determines which master files are used for the navigation.
00030  **
00031  ** @ingroup tp_tools tp_shell
00032  **
00033  ** @author Glenn C. Maxey
00034  **/
00035 // //
00036 //// 2002 Created by Voyant Technologies, Inc., Westminster, Colorado, USA.
00037 ////
00038 //// Permission to use, copy, modify, and distribute this software and its 
00039 //// documentation under the terms of the GNU General Public License is hereby 
00040 //// granted. No representations are made about the suitability of this software 
00041 //// for any purpose. It is provided "as is" without express or implied warranty. 
00042 //// See the GNU General Public License (http://www.gnu.org/copyleft/gpl.html) 
00043 //// for more details.
00044 //// 
00045 //// Documents produced by this script are derivative works derived from the 
00046 //// input used in their production; they are not affected by this license.
00047 ////
00048 //// @author Glenn C. Maxey
00049 ////
00050 //// $Log: 50_nav_update.b,v $
00051 //// Revision 1.3  2002/12/24 21:33:08  gmaxe
00052 //// *** empty log message ***
00053 ////
00054 //// Revision 1.2  2002/12/24 19:00:39  gmaxe
00055 //// New structure and new version using TOC and all.
00056 ////
00057 //// Revision 1.1  2002/12/24 15:27:45  gmaxe
00058 //// New dir structure.
00059 ////
00060 //// Revision 1.5  2002/07/22 23:06:34  gmaxe
00061 //// Added project parameter to pl calls.
00062 ////
00063 //// Revision 1.4  2002/01/21 17:39:52  gmaxe
00064 //// Changed comment style.
00065 ////
00066 ////
00067 /////////////////////////////////////////////////////////////////////////////////
00068 
00069 // assumes that you are in the <rtfm/>techpubs/tp_tools directory  <home> where this
00070 // script was found. ... 
00071 echo "Entering 50_nav_update..."
00072 set def_ver = 'v2-00-0a'
00073 if ($// argv > 0) then
00074    @ cnt = 1
00075    while ($// argv)
00076       //  echo "$argv[1] and $cnt"
00077       if ($cnt == 1) then
00078          set rel_ver = $argv[1]
00079       endif
00080       @ cnt++
00081       shift
00082    end
00083    /rtfm/techpubs/perl/master_update.pl voyant_master_nav.html $rel_ver
00084    set ret_val = $status
00085    if ($ret_val > 0) then
00086       echo "WARNING: Problems with master_update.pl 1."
00087       exit 1
00088    endif
00089 else
00090    echo -n "Enter latest build version [$def_ver]:"
00091    set rel_ver = $<
00092    if ($rel_ver =~ "") then
00093       set rel_ver = $def_ver
00094       //  If we're just using the default version from this script, then
00095       //  the master itself will probably have more accurate version numbers.
00096       echo "Version from master file will be used and not '$rel_ver'."
00097       /rtfm/techpubs/perl/master_update.pl voyant_master_nav.html
00098       set ret_val = $status
00099       if ($ret_val > 0) then
00100          echo "WARNING: Problems with master_update.pl 2."
00101          exit 1
00102       endif
00103       echo "Version existing in master file was used and not the default [$rel_ver]."
00104    else
00105       //  we entered a valid version and should update with that date.
00106       /rtfm/techpubs/perl/master_update.pl voyant_master_nav.html $rel_ver
00107       set ret_val = $status
00108       if ($ret_val > 0) then
00109          echo "WARNING: Problems with master_update.pl 3."
00110          exit 1
00111       endif
00112    endif
00113 endif
00114 // echo "Will look here: $rel_ver"
00115 
00116 
00117 
00118 echo "Give all htm* files the same navigation bars, footers, etc."
00119 
00120 55_nav_gen.b doc_publish/ book_tp_tools voyant_master_nav.html project_toc.txt        
00121 55_nav_gen.b doc_publish/ cref_tp_perl voyant_master_nav.html project_toc.txt        
00122 55_nav_gen.b doc_publish/ cref_tp_script voyant_master_nav.html project_toc.txt        
00123 55_nav_cp.b doc_publish/ book_help_on_help voyant_master_nav.html project_toc.txt        
00124 
00125 // It is important to get the navigation in any files in the main
00126 // doc_publish directory, but the script files are probably
00127 // of no use and aren't specified in the voy_order. The index files
00128 // might be useful.
00129 /rtfm/techpubs/perl/voyant_nav.pl doc_publish/ voyant_master_nav.html project_toc.txt
00130 // cp doc_publish/_index_list zdoc_merge/index_doc_publish
00131 // cp doc_publish/tree.script zdoc_merge/tree_doc_publish.script
00132 
00133 echo "cp m_toc.html doc_publish/"
00134 cp m_toc.html doc_publish/
00135 
00136 56_nav_script.b
00137 56_nav_index.b
00138 
00139 echo "Okay 50_nav_update.b "
00140 exit 0
00141 


 "Shell Script Reference" 
 < Previous 
 Next > 


Open-Source tools compliments of Voyant Technologies, Inc. and Glenn C. Maxey.
01/13/2003

TP Tools v2-00-0a

# tpt-script-hcr-02