Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / week_2005_01_23.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
4 <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6    <meta name="generator" content="Movable Type 5.2.3" />
7
8    <link rel="stylesheet" href="http://defaria.com/blogs/Status/styles-site.css" type="text/css" />
9    <link rel="alternate" type="application/atom+xml" title="Atom" href="http://defaria.com/blogs/Status/atom.xml" />
10    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://defaria.com/blogs/Status/index.xml"$>" />
11
12    <title>Status for Andrew DeFaria: January 23, 2005 - January 29, 2005 Archives</title>
13
14    <link rel="start" href="http://defaria.com/blogs/Status/" title="Home" />
15    <link rel="prev" href="http://defaria.com/blogs/Status/archives/week_2005_01_16.html" title="January 16, 2005 - January 22, 2005" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/week_2005_01_30.html" title="January 30, 2005 - February  5, 2005" />
17 </head>
18 <body class="layout-one-column">
19    <div id="container">
20       <div id="container-inner" class="pkg">
21
22          <div id="banner">
23             <div id="banner-inner" class="pkg">
24                <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
25                <h2 id="banner-description">Searchable status reports and work log</h2>
26             </div>
27          </div>
28
29          <div id="pagebody">
30             <div id="pagebody-inner" class="pkg">
31                <div id="alpha">
32                   <div id="alpha-inner" class="pkg">
33                      
34                      <p class="content-nav">
35                         <a href="http://defaria.com/blogs/Status/archives/week_2005_01_16.html">&laquo; January 16, 2005 - January 22, 2005</a> |
36                         <a href="http://defaria.com/blogs/Status/">Main</a>
37                         | <a href="http://defaria.com/blogs/Status/archives/week_2005_01_30.html">January 30, 2005 - February  5, 2005 &raquo;</a>
38                      </p>
39                      
40                      
41                      
42
43                      <h2 class="date-header">January 28, 2005</h2>
44                      <a id="a000290"></a>
45                      <div class="entry" id="entry-290">
46                         <h3 class="entry-header">CVS corruption</h3>
47                         <div class="entry-content">
48                            <div class="entry-body">
49                               <p>Vinnie pointed out that there was some sort of problem with CVS on Monday, the date that I had gotten the sources out of CVS. Ends up some files were missing so I had to redo the PPC cross build.</p>
50                               
51                               <p class="entry-footer">
52                                  <span class="post-footers">Posted by  at  3:47 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000290.html">Permalink</a>
53                                  
54                                  
55                               </p>
56                            </div>
57                         </div>
58                      </div>
59                      
60                      
61
62                      <h2 class="date-header">January 27, 2005</h2>
63                      <a id="a000289"></a>
64                      <div class="entry" id="entry-289">
65                         <h3 class="entry-header">cvs_report.pl</h3>
66                         <div class="entry-content">
67                            <div class="entry-body">
68                               <p>I've updated cvs_report.pl to be more parameterized and flexible. One goal was to make it smart enough to produce a report showing the ECRs between two labels. This is helpful when one wants to get the ECRs that were picked up in this build.</p>
69
70                               
71                               <p>Here's the usage:</p>
72
73 <div class="code"><pre>
74 $ cvs_report.pl -u
75 Usage: cvs_report.pl [-u] [-email-to &lt;<i>list</i>&gt;] [-email-cc &lt;<i>list</i>&gt;]
76                      -from &lt;<i>tag</i>&gt; -to &lt;<i>tag</i>&gt; -m &lt;<i>cvs_module</i>&gt;
77
78 Where:
79
80         -u:             Display usage
81         -email-to:      Comma separated list of email addresses
82                         to send the report to (Default: Report sent to STDOUT)
83         -email-cc:      Comma separated list of email addresses
84                         to cc the report to
85         -from:          CVS tag used as the base (Default: Extracted from CVS
86                         area - error if no CVS area)
87         -to:            CVS tag used as the delta (Default: HEAD)
88         -m:             CVS module to process
89 </pre></div>
90
91 <p>Notice that there are options for -email-to and -email-cc. If no email options are specified then cvs_report just outputs the report to STDOUT. This can be used to capture what was picked up. For example, to pickup the ECRs that were incorporated between Lion_lynxos_120604 and Lion_lynxos_012405 one could:</p>
92
93 <div class="code"><pre>
94 $ cvs_report.pl -from Lion_lynxos_120405 -to Lion_lynxos_012405 -m lynxos > /tmp/ECRs.log
95 </pre></div>
96
97 <p>Note that if -to is not specified then it defaults to HEAD. So the following cronjob could be configured:</p>
98
99 <div class="code"><pre>
100 * 4 * * * /it/bin/cvs_report.pl -email-to &lt;<i>email alias</i>&gt;
101 </pre></div>
102
103 <p>(It would be best if email aliases were used to control who the report is normally sent to).</p>
104
105 <p>You may notice that there is no -from in the cronjob. This is possible because of another optimization change to cvs_report.  The old cvs_report.pl would check out a module into a temporary directory based on a tag then do an update capturing and processing the output from cvs update as the files that have changed. Then it would remove that temporary area. This is a waste as the next night the CVS area is created again from the same -from or base tag. The new cvs_report will also create the temporary area by using $module.cvsr (e.g. lynxos.cvsr). Additionally it will create a file in $module.cvsr named .cvsr containing the -from tag. Subsequent runs of cvs_report without a -from will use the .cvsr file to ascertain what base level the CVS area is at. Thus it does not need to "refresh" the CVS area again and can instead proceed to the cvs update step. This saves several minutes of processing time.</p>
106
107 <p>Finally, even the cronjob does not need to ever be changed (except if we change the -email-to parameter, which, again, should be an email alias thus we would not change the cronjob rather we would change the email alias - think of people subscribing to receive the CVS report). When we go from Lion_lynxos_012405 -> the next tag all that need be done in a shell window is:</p>
108
109 <div class="code"><pre>
110 $ cvs_report.pl -from &lt;<i>new tag</i>&gt; -m lynxos
111 </pre></div>
112
113 <p>Since -from is specified, cvs_report will refresh the lynxos.cvs area and update the .cvsr file to reflect the change. The nightly cronjob will automatically sense the change and just work!</p>
114
115 <p>Oh, and in passing, I make a change such that new files, files who were not present at the -from tag, are tagged with an "*" to indicate that this file is new file in CVS.</p>
116
117                               
118                               <p class="entry-footer">
119                                  <span class="post-footers">Posted by  at  4:11 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000289.html">Permalink</a>
120                                  
121                                  
122                               </p>
123                            </div>
124                         </div>
125                      </div>
126                      
127                      
128
129                      <h2 class="date-header">January 26, 2005</h2>
130                      <a id="a000288"></a>
131                      <div class="entry" id="entry-288">
132                         <h3 class="entry-header">Built 012405</h3>
133                         <div class="entry-content">
134                            <div class="entry-body">
135                               <ul>
136   <li>Built LynxOS 5.0.0 for x86 and ppc and archived that onto T3</li>
137
138   <li>Started altering cvs_report.pl to be parameterized and to allow a "CVS Report" from one label to another</li>
139 </ul>
140                               
141                               <p class="entry-footer">
142                                  <span class="post-footers">Posted by  at 10:19 AM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000288.html">Permalink</a>
143                                  
144                                  
145                               </p>
146                            </div>
147                         </div>
148                      </div>
149                      
150                      
151
152                      <h2 class="date-header">January 25, 2005</h2>
153                      <a id="a000287"></a>
154                      <div class="entry" id="entry-287">
155                         <h3 class="entry-header">PPC Build & Documentation</h3>
156                         <div class="entry-content">
157                            <div class="entry-body">
158                               <ul>
159   <li>Decided to also build Cross PPC on the Lion_lynxos_012405 tag</li>
160
161   <li>Many documentation updates</li>
162 </ul>
163                               
164                               <p class="entry-footer">
165                                  <span class="post-footers">Posted by  at  5:30 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000287.html">Permalink</a>
166                                  
167                                  
168                               </p>
169                            </div>
170                         </div>
171                      </div>
172                      
173                      
174
175                      <h2 class="date-header">January 24, 2005</h2>
176                      <a id="a000286"></a>
177                      <div class="entry" id="entry-286">
178                         <h3 class="entry-header">Building & tagging TOT/X86</h3>
179                         <div class="entry-content">
180                            <div class="entry-body">
181                               <ul>
182   <li>Checked out TOT into work_area and tagged it</li>
183
184   <li>Documented the tagging procedure</li>
185
186   <li>Proceeding with cross LynxOS instructions - ran out of space</li>
187
188   <li>Documentation review</li>
189 </ul>
190                               
191                               <p class="entry-footer">
192                                  <span class="post-footers">Posted by  at  3:02 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000286.html">Permalink</a>
193                                  
194                                  
195                               </p>
196                            </div>
197                         </div>
198                      </div>
199                      
200                   </div>
201                </div>
202             </div>
203          </div>
204       </div>
205    </div>
206 </body>
207 </html>