|
|
|
|
|
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: 45_latex_gen.b,v 1.2 2002/12/24 21:36:22 gmaxe Exp $ 00014 //// 00015 /** @file 00016 ** @brief Calls the requisite programs for ultimately generating a PDF file 00017 ** from Latex that came from doxygen. 00018 ** 00019 ** @param lat_path The shortened version of the directory name where 00020 ** the latex files can be found. It is assumed that zlx_<lat_path> 00021 ** exists in a subdirectory from where this was called. 00022 ** 00023 ** In order to get a PDF from a doxygen project, you have to make sure 00024 ** that doxygen generates latex files. Then you have to call various 00025 ** commands to get latex to generate a postscript and then PDF file. 00026 ** The steps are the same for all projects. 00027 ** 00028 ** Rather than polluting the higher-level scripts that are essentially 00029 ** the same for all doxygen projects, this separates the details from 00030 ** the application-specific projects. Thus, if doxygen changes how PDF 00031 ** files are generated, this can be modified in one place to handle it. 00032 ** 00033 ** @lim This is intended to be called from a 40_latex_gen.b file that 00034 ** determines the directory name. 00035 ** 00036 ** @ingroup tp_tools tp_shell 00037 ** 00038 ** @author Glenn C. Maxey 00039 **/ 00040 // // 00041 //// 2002 Created by Voyant Technologies, Inc., Westminster, Colorado, USA. 00042 //// 00043 //// Permission to use, copy, modify, and distribute this software and its 00044 //// documentation under the terms of the GNU General Public License is hereby 00045 //// granted. No representations are made about the suitability of this software 00046 //// for any purpose. It is provided "as is" without express or implied warranty. 00047 //// See the GNU General Public License (http://www.gnu.org/copyleft/gpl.html) 00048 //// for more details. 00049 //// 00050 //// Documents produced by this script are derivative works derived from the 00051 //// input used in their production; they are not affected by this license. 00052 //// 00053 //// $Log: 45_latex_gen.b,v $ 00054 //// Revision 1.2 2002/12/24 21:36:22 gmaxe 00055 //// Commented version. 00056 //// 00057 //// 00058 ///////////////////////////////////////////////////////////////////////////////// 00059 // assumes that you are in the <rtfm/>techpubs/<home> directory 00060 // where this script resides 00061 00062 set lat_path=$1 00063 00064 echo "Entering 45_latex_gen.b ${lat_path} " 00065 00066 echo "Generate all PDF files." 00067 00068 // BAPI (works) 00069 echo "Doing zlx_${lat_path}..." 00070 cd zlx_${lat_path} 00071 make clean 00072 set ret_val = $status 00073 if ($ret_val > 0) then 00074 echo "ERROR: Problems with make clean ." 00075 exit 1 00076 endif 00077 00078 echo "Running latex..." 00079 latex refman.tex 00080 set ret_val = $status 00081 // if ($ret_val > 0) then 00082 // echo "ERROR: Problems with latex refman.tex ." 00083 // exit 1 00084 endif 00085 00086 echo "Running makeindex..." 00087 makeindex refman.idx 00088 set ret_val = $status 00089 if ($ret_val > 0) then 00090 // echo "ERROR: Problems with makeindex refman.idx ." 00091 // exit 1 00092 endif 00093 00094 echo "Rerunning latex...." 00095 latex refman.tex 00096 set ret_val = $status 00097 if ($ret_val > 0) then 00098 // echo "ERROR: Problems with latex refman.tex ." 00099 // exit 1 00100 endif 00101 00102 make ps 00103 set ret_val = $status 00104 if ($ret_val > 0) then 00105 echo "ERROR: Problems with make ps ." 00106 exit 1 00107 endif 00108 00109 make pdf 00110 set ret_val = $status 00111 if ($ret_val > 0) then 00112 echo "ERROR: Problems with make pdf ." 00113 exit 1 00114 endif 00115 00116 cd .. 00117 cp zlx_${lat_path}/refman.pdf doc_publish/print_pdf/${lat_path}_crf.pdf 00118 00119 00120 echo "Okay 45_latex_gen.b ${lat_path} " 00121 exit 0 00122
|
|
|
Open-Source tools compliments of Voyant Technologies, Inc. and Glenn C. Maxey.
01/13/2003
TP Tools v2-00-0a
# tpt-script-hcr-02