Contents 
 Index 
 "Shell Script Reference" 
 < Previous 
 Next > 

00_build_tp_tools.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: 00_build_tp_tools.b,v 1.6 2002/12/24 19:00:37 gmaxe Exp $
00014 ////
00015 /** @file
00016  ** @brief The control script for all tp_tools. 
00017  **
00018  ** This is used when building
00019  ** from scratch. It checks out all other scripts and tools needed from CVS,
00020  ** and then proceeds to call those scripts in the proper order.
00021  **
00022  ** This is typically only run the first time. Thereafter, the 00_short.b
00023  ** can be more efficient or even calling individual scripts.
00024  **
00025  ** @note This file needs to be updated to support other directories.
00026  **
00027  ** @ingroup tp_tools tp_shell
00028  **
00029  ** @author Glenn C. Maxey
00030  **/
00031 // //
00032 //// 2002 Created by Voyant Technologies, Inc., Westminster, Colorado, USA.
00033 ////
00034 //// Permission to use, copy, modify, and distribute this software and its 
00035 //// documentation under the terms of the GNU General Public License is hereby 
00036 //// granted. No representations are made about the suitability of this software 
00037 //// for any purpose. It is provided "as is" without express or implied warranty. 
00038 //// See the GNU General Public License (http://www.gnu.org/copyleft/gpl.html) 
00039 //// for more details.
00040 //// 
00041 //// Documents produced by this script are derivative works derived from the 
00042 //// input used in their production; they are not affected by this license.
00043 ////
00044 //// $Log: 00_build_tp_tools.b,v $
00045 //// Revision 1.6  2002/12/24 19:00:37  gmaxe
00046 //// New structure and new version using TOC and all.
00047 ////
00048 //// Revision 1.5  2002/11/21 19:50:50  gmaxe
00049 //// Link to common script files.
00050 ////
00051 //// Revision 1.4  2002/01/21 17:39:50  gmaxe
00052 //// Changed comment style.
00053 ////
00054 ////
00055 /////////////////////////////////////////////////////////////////////////////////
00056 
00057 // assumes that you are in the <rtfm/>techpubs/tp_tools directory  <home> where this
00058 // script was found. ... 
00059 //###
00060 echo "Update the tools needed for this task."
00061 cd /rtfm
00062 cvs update techpubs/tp_tools
00063 cvs update techpubs/perl
00064 
00065 cd /rtfm/techpubs/perl
00066 chmod 775 *.pl
00067 
00068 echo "Back <home>."
00069 cd /rtfm/techpubs/tp_tools
00070 
00071 echo "chmod 775 *.b"
00072 chmod 775 *.b
00073 
00074 
00075 // Link to common script files
00076 ln -s /rtfm/techpubs/b_script/20_cp_com_files.b 20_cp_com_files.b
00077 ln -s /rtfm/techpubs/b_script/35_gen_dox.b 35_gen_dox.b
00078 ln -s /rtfm/techpubs/b_script/35_gen_tree.b 35_gen_tree.b
00079 ln -s /rtfm/techpubs/b_script/45_latex_gen.b 45_latex_gen.b
00080 ln -s /rtfm/techpubs/b_script/55_nav_cp.b 55_nav_cp.b
00081 ln -s /rtfm/techpubs/b_script/55_nav_gen.b 55_nav_gen.b
00082 ln -s /rtfm/techpubs/b_script/56_nav_index.b 56_nav_index.b
00083 ln -s /rtfm/techpubs/b_script/56_nav_script.b 56_nav_script.b
00084 
00085 ln -s /rtfm/books/tp_tools/2000/users_guide src_fm
00086 ln -s /rtfm/techpubs/perl src_perl
00087 
00088 cd doc_publish
00089 ln -s /rtfm/books/tp_tools/2000/doc_publish/book_tp_tools book_tp_tools
00090 ln -s /rtfm/books/help_on_help/1000/doc_publish/book_help_on_help book_help_on_help
00091 
00092 cd /rtfm/techpubs/tp_tools
00093 
00094 echo "Make needed support directores if they don't already exist."
00095 mkdir zdoc_merge
00096 mkdir doc_publish
00097 mkdir doc_publish/book_tp_tools
00098 mkdir doc_publish/cref_tp_tools
00099 
00100 set def_ver = 'v2-00-0a'
00101 if ($// argv > 0) then
00102    @ cnt = 1
00103    while ($// argv)
00104       //  echo "$argv[1] and $cnt"
00105       if ($cnt == 1) then
00106          set rel_ver = $argv[1]
00107       endif
00108       @ cnt++
00109       shift
00110    end
00111    /rtfm/techpubs/perl/master_update.pl voyant_master_nav.html $rel_ver
00112    set ret_val = $status
00113    if ($ret_val > 0) then
00114       echo "WARNING: Problems with master_update.pl 1."
00115       exit 1
00116    endif
00117 else
00118    echo -n "Enter latest build version [$def_ver]:"
00119    set rel_ver = $<
00120    if ($rel_ver =~ "") then
00121       set rel_ver = $def_ver
00122       //  If we're just using the default version from this script, then
00123       //  the master itself will probably have more accurate version numbers.
00124       echo "Version from master file will be used and not '$rel_ver'."
00125       /rtfm/techpubs/perl/master_update.pl voyant_master_nav.html
00126       set ret_val = $status
00127       if ($ret_val > 0) then
00128          echo "WARNING: Problems with master_update.pl 2."
00129          exit 1
00130       endif
00131       echo "Version existing in master file was used and not the default [$rel_ver]."
00132    else
00133       //  we entered a valid version and should update with that date.
00134       /rtfm/techpubs/perl/master_update.pl voyant_master_nav.html $rel_ver
00135       set ret_val = $status
00136       if ($ret_val > 0) then
00137          echo "WARNING: Problems with master_update.pl 3."
00138          exit 1
00139       endif
00140    endif
00141 endif
00142 // echo "Will look here: $rel_ver"
00143 
00144 
00145 
00146 
00147 echo "Copy common files into respective subdirectories."
00148 echo "Run 20_cp_com_files from 00_build_tp_tools.b ..."
00149 20_cp_com_files.b
00150 set ret_val = $status
00151 if ($ret_val > 0) then
00152    echo "ERROR: Problems with 20_cp_com_files.b ."
00153    exit 1
00154 endif
00155 
00156 echo "Perform the Doxygen software component builds."
00157 echo "Run 30_tp_tools.b from 00_build_tp_tools.b ..."
00158 30_tp_tools.b $rel_ver
00159 set ret_val = $status
00160 if ($ret_val > 0) then
00161    echo "ERROR: Problems with 30_tp_tools.b ."
00162    exit 1
00163 endif
00164 
00165 // Handle the navigation
00166 echo "Run 50_nav_update.b from 00_build_tp_tools.b ..."
00167 50_nav_update.b $rel_ver
00168 set ret_val = $status
00169 if ($ret_val > 0) then
00170    echo "ERROR: Problems with 50_nav_update.b ."
00171    exit 1
00172 endif
00173 
00174 // Do latex builds by hand
00175 // echo "Run 40_latex_build.b from 00_build_tp_tools.b ..."
00176 // 40_latex_build.b
00177 // set ret_val = $status
00178 // if ($ret_val > 0) then
00179 //   echo "ERROR: Problems with 40_latex_build.b ."
00180 //   exit 1
00181 // endif
00182 
00183 
00184 echo "Finished 00_build_tp_tools.b from 00_build_tp_tools.b ..."
00185 exit 0
00186 


 "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