Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / 000272.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: Files4ecr</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/000271.html" title="files4ecr.pl" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/000273.html" title="ecrdesc" />
17
18    
19
20    
21
22    <script type="text/javascript" src="http://defaria.com/blogs/Status/mt-site.js"></script>
23 </head>
24 <body class="layout-one-column" onload="individualArchivesOnLoad(commenter_name)">
25    <div id="container">
26       <div id="container-inner" class="pkg">
27
28          <div id="banner">
29             <div id="banner-inner" class="pkg">
30                <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
31                <h2 id="banner-description">Searchable status reports and work log</h2>
32             </div>
33          </div>
34
35          <div id="pagebody">
36             <div id="pagebody-inner" class="pkg">
37                <div id="alpha">
38                   <div id="alpha-inner" class="pkg">
39
40                      <p class="content-nav">
41                         <a href="http://defaria.com/blogs/Status/archives/000271.html">&laquo; files4ecr.pl</a> |
42                         <a href="http://defaria.com/blogs/Status/">Main</a>
43                         | <a href="http://defaria.com/blogs/Status/archives/000273.html">ecrdesc &raquo;</a>
44                      </p>
45
46                      <a id="a000272"></a>
47                      <div class="entry" id="entry-272">
48                         <h3 class="entry-header">Files4ecr</h3>
49                         <div class="entry-content">
50                            <div class="entry-body">
51                               <ul>
52
53 <li>Finished up files4ecr</li>
54
55 <li>PPC toolchain build W/23084 is failing</li>
56
57 </ul>
58                            </div>
59                            <div id="more" class="entry-more">
60                               <h3>files4ecr</h4>
61
62 <p>From the <a href="news:gnu.cvs.help">gnu.cvs.help</a> newsgroup I learned that doing a cvs log of everything then grepping through that is <b>much</b> faster than interrogating each file with cvs log. I then reorganized files4ecr to work in the following manner:</p>
63
64 <p>It occurred to me that often we wish to know, or pull, the file
65 revision associated with an ECR #. I've created a script called
66 files4ecr that accomplishes this:</p
67
68 <div class="code"><pre>
69 <font color="#3333ff">saturn:</font><u>files4ecr-u</u>
70 Usage: files4ecr [-v] [-d] [-l] [-x] [-u] &lt;ecr&gt;
71
72 Where:
73  
74         -v:     Turn on verbose mode (Default: off)
75         -d:     Turn on debug mode (Default: off)
76         -l:     Local directory only, no recursion
77         -x:     Turn on execute mode (Default: off)
78         -u:     Dsplay usage
79         ecr     ECR number to search for
80 </pre>
81 </div>
82
83 <p>The performance for this script is pretty good, depending on the amount of information in the CVS logs. Here's an example of it's usage:</p>
84
85 <div class="code"><pre>
86 <font color="#3333ff"><b>saturn:</b></font><u>files4ecr 20505</u>
87 SETUP.csh: 10.2 - Out of date
88 etc/tconfig: 10.2 - Already up to date
89 SETUP.bash: 10.6 - Out of date
90 etc/ttys-arm: 1.1 - Already up to date
91 Makefile: 10.13 - Out of date
92 </pre></div>
93
94 <p>In noexecute mode it just displays the file and the revision of the
95 file associated with that ECR. The -l option is similar to cvs' -l option:</p>
96
97 <div class="code"><pre>
98 <font color="#3333ff">saturn:</font><u>files4ecr -l 20505</u>
99 SETUP.csh: 10.2 - Out of date
100 SETUP.bash: 10.6 - Out of date
101 Makefile: 10.13 - Out of date
102 </pre></div>
103
104 <p>Also, like cvs, files4ecr operates in the current context and current
105 working directory.</p>
106
107 <p>With -x turned on files4ecr will perform the cvs update commands
108 necessary to "pull" the versions for the ECR:</p>
109
110 <div class="code"><pre>
111 <font color="#3333ff">saturn:</font><u>files4ecr -x 20505</u>
112 cvs update -r10.2&nbsp; SETUP.csh - Updated
113 cvs update -r10.2&nbsp; etc/tconfig - Already up to date
114 cvs update -r10.6&nbsp; SETUP.bash - Updated
115 cvs update -r1.1&nbsp; etc/ttys-arm - Already up to date
116 cvs update -r10.13&nbsp; Makefile - Updated
117 </pre></div>
118
119 <p>And we can see that the update has taken place:</p>
120
121 <div class="code"><pre>
122 <font color="#3333ff">saturn:</font><u>files4ecr 20505</u>
123 SETUP.csh: 10.2 - Already up to date
124 etc/tconfig: 10.2 - Already up to date
125 SETUP.bash: 10.6 - Already up to date
126 etc/ttys-arm: 1.1 - Already up to date
127 Makefile: 10.13 - Already up to date
128 </pre></div>
129
130 <p>Anybody interested in such a script?</p>
131
132 <p><b>Note:</b> I've noticed that "ECR Number:" is not necessarily a
133 consistent indicator of an ECR number. I search for several strings:</p>
134
135 <div class="code"><pre>
136 /^ECR Number: (\d*)$/    or
137 /^ECR# (\d*)$/           or
138 /^ECR # (\d*)$/          or
139 /^\s*ECR (\d*)/
140 </pre></div>
141
142 <p>I've also noticed that a single ECR number may be attached to several revisions. files4ecr takes the latest revision in such cases.</p>
143
144 <h2>PPC toolchain build W/23084 is failing</h2>
145
146 <p>Preliminary investigation shows that while attempting to configure libiberty the build process is unable to use gcc to compile things. It seems to be lacking a crt1.o</p>
147                            </div>
148                         </div>
149                         <p class="entry-footer">
150                            <span class="post-footers">Posted by  on January  6, 2005 10:31 AM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000272.html">Permalink</a>
151                         </p>
152                      </div>
153
154                      
155
156                      
157                   </div>
158                </div>
159             </div>
160          </div>
161       </div>
162    </div>
163 </body>
164 </html>