⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 node47.html

📁 htmdoc for html coding
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2 Final//FR"><!-- Converted with LaTeX2HTML 95.1 (Fri Jan 20 1995) --><!-- by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds --><!-- Modified Simulog 03/97 --><HTML><HEAD><TITLE>5.4 Up-date of the MODULEF library source code</TITLE><LINK REL=STYLESHEET TYPE="text/css"	HREF="./Modulef.css" TITLE="Modulef CSS"><meta name="description" value="5.4 Up-date of the MODULEF library source code"><meta name="keywords" value="Guide1"><meta name="resource-type" value="document"><meta name="distribution" value="global"></HEAD><BODY BGCOLOR="#FFFFFF"><P> <IMG SRC="../icons/smallmod.gif" WIDTH=211 HEIGHT=50 ALIGN=BOTTOM	ALT="Modulef"><A NAME=tex2html744 HREF="node46.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/previous_motif.gif"	ALT="previous"></A><A NAME=tex2html748 HREF="node42.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/up_motif.gif"	ALT="up"></A><A NAME=tex2html750 HREF="node48.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/next_motif.gif"	ALT="next"></A><A NAME=tex2html752 HREF="node2.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/contents_motif.gif"	ALT="contents"></A><A HREF="../Guide1-18/node47.html"><IMG BORDER=0 SRC="../icons/zoom18.gif" ALIGN=BOTTOM	ALT="[BIG]"></A><A HREF="../Guide1-14/node47.html"><IMG BORDER=0 SRC="../icons/zoom14.gif" ALIGN=BOTTOM	ALT="[Normal]"></A><A HREF="../Guide1-10/node47.html"><IMG BORDER=0 SRC="../icons/zoom10.gif" ALIGN=BOTTOM	ALT="[small]"></A><BR><B> Next: </B> <A NAME=tex2html751 HREF="node48.html">Part IV: Appendices</A><B>Up: </B> <A NAME=tex2html749 HREF="node42.html">5 Management under UNIX</A><B> Prev: </B> <A NAME=tex2html745 HREF="node46.html">5.3 Description of commands</A><B><A HREF="node2.html"	>Contents</A></B><HR SIZE=3 WIDTH="75&#37;"><H1><A NAME=SECTION05650000000000000000>5.4 Up-date of the MODULEF library source code</A></H1><P><P><P><H2><A NAME=SECTION05651000000000000000>5.4.1 Reception - Reading the data</A></H2><P><P>In order to perform the MODULEF up-date with Unix, we will deliver    a file containing the up-date  (<tt> $MR/ascii/sta/etc/maj.fo</tt>) by e-mail.<P> This file must be stored in the directory <tt> $MR/ascii/sta/etc</tt><P><P><H2><A NAME=SECTION05652000000000000000>5.4.2 Up-date</A></H2><P><P><P><H3><A NAME=SECTION05652100000000000000> General</A></H3><P><P><P>The re-update is performed using the UNIX command <tt> patch</tt>. Thiscommand considers the differences <FONT color="#B8860B" SIZE=-1><I>(<IMG ALIGN=middle SRC="../icons/foot_motif.gif"	ALT="[note]"> produced, for example, by command diff)</I></FONT> between files and applies these differences to the original file, thus creating a new version.<P>A C program (<tt> prepatch</tt>) which reads file <tt> maj.fo</tt> (containing the differences)and calls command <tt> patch</tt> has been written.<P>Command <tt> patch</tt> is used with  options -c et -N ;these options allow us to enforce the command to interpret the modificationsas <i> output</i> from command diff, and ignore the modifications once they have  been applied.<P>All the messages generated during the call of the patch procedureare stored in file <tt> patch.log</tt>.<P><P><P><H3><A NAME=SECTION05652200000000000000> Re-update</A></H3><P><P><P>Now that you have received the package, go to directorycontaining the  Makefile of the re-update:  <blockquote> cd $MR/ascii/com.util/patch </blockquote><P>The  Makefile assumes that  variable MR is initialized correctly in thecurrent environment; if this is not the case at the time when the make command is called,add the option: <blockquote> -e MR=<i> name of the directory where MODULEF has been installed</i></blockquote><P>During  execution of the Makefile,  updating the MODULEF source code,it is  assumed that the patch command is not available on your machine.The Makefile performing the update can therefore correspond to two  situations:<UL><LI>  you already have this command at your disposal on your machine,<LI> it does not exist yet.</UL><P><DL COMPACT><DT>Remark:<DD> To find out whether the <tt> patch</tt>  command exists, enter:<P><code> which patch</code> and/or <code> man patch</code><P>Depending on the two possibilities, we will now indicate the way in which the Makefile must be called:<DL COMPACT><DT>The command exists already:<DD>     It suffices, when calling the  Makefile, to indicate the complete name of the patch command in variable PATCH:  <BR>   <tt> make -e PATCH=`which patch`   </tt><P><DT>The patch command does not exist yet:<DD>The update will be performed in two steps:<OL><LI>  creation of command patch:<BR> during the first step, it is advisable  to login at the root  so that the patch command will be accessible to allthereafter;<PRE> su root make patch -e Install=install ^D</PRE><P>The  patch  command is then stored in directory/usr/local/bin (in general), and the <tt> man</tt> is installed.<P>If you cannot login at the root, you need to execute  command:     <BR><P>  <code> make patch</code>       <BR><P>The patch  command is then created in directory <BR><P> $MR/ascii/com.util/patch/patch-2.0.12u7<P>  <LI>  update <BR><P>        <code> make </code><P></OL>  </DL><P><DT>Remark:<DD>  <P><UL><LI> The Makefile targets,  clean and cleanpre, are used to delete everything that has been generated during execution of commands <BR><P><code> make patch </code> and  <code> make</code> respectively.<P><LI> After the update of the library's source code, the  <b> installation Makefile</b> can be used to re-update the libraries and executables:<PRE>     cd $MR/make/Install$MM     make librairies      make executables</PRE></UL>  </DL><P><P><H2><A NAME=SECTION05653000000000000000>5.4.3 Complementary  information about UNIX command:  patch</A></H2><P><P><P>The command's source and complementary information are given in directory:<P> $MR/ascii/com.util/patch/patch-2.0.12u7 (file README).<P>If, on HP/Apollo or Sun4, the Makefile to create the patch is interrupted during execution ofcommand file  <tt> Configure</tt>, you can try to restart theMakefile (<code>make patch</code>) by first executing the command: <BR><P> <code>  make init_apollo</code>   if you work on HP/Apollo  <BR>  <code>     make init_sun4</code>   if you work on Sun4   <BR><P>Execution of target <tt> init_xx</tt> will enable you to avoid  executing  command file <tt> Configure</tt>  (see  documentation on  patch command), and we then use a configuration which was established beforehand.<P><P><HR SIZE=3 WIDTH="75&#37;"><IMG SRC="../icons/smallmod.gif" WIDTH=211 HEIGHT=50 ALIGN=BOTTOM	ALT="Modulef"><A NAME=tex2html744 HREF="node46.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/previous_motif.gif"	ALT="previous"></A><A NAME=tex2html748 HREF="node42.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/up_motif.gif"	ALT="up"></A><A NAME=tex2html750 HREF="node48.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/next_motif.gif"	ALT="next"></A><A NAME=tex2html752 HREF="node2.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/contents_motif.gif"	ALT="contents"></A><A HREF="../Guide1-18/node47.html"><IMG BORDER=0 SRC="../icons/zoom18.gif" ALIGN=BOTTOM	ALT="[BIG]"></A><A HREF="../Guide1-14/node47.html"><IMG BORDER=0 SRC="../icons/zoom14.gif" ALIGN=BOTTOM	ALT="[Normal]"></A><A HREF="../Guide1-10/node47.html"><IMG BORDER=0 SRC="../icons/zoom10.gif" ALIGN=BOTTOM	ALT="[small]"></A><BR><B> Next: </B> <A NAME=tex2html751 HREF="node48.html">Part IV: Appendices</A><B>Up: </B> <A NAME=tex2html749 HREF="node42.html">5 Management under UNIX</A><B> Prev: </B> <A NAME=tex2html745 HREF="node46.html">5.3 Description of commands</A><B><A HREF="node2.html"	>Contents</A></B><BR> <HR><P><ADDRESS></ADDRESS></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -