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">
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="generator" content="Movable Type 5.2.3" />
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" />
12 <title>Status for Andrew DeFaria: Files4ecr</title>
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" />
22 <script type="text/javascript" src="http://defaria.com/blogs/Status/mt-site.js"></script>
24 <body class="layout-one-column" onload="individualArchivesOnLoad(commenter_name)">
26 <div id="container-inner" class="pkg">
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>
36 <div id="pagebody-inner" class="pkg">
38 <div id="alpha-inner" class="pkg">
40 <p class="content-nav">
41 <a href="http://defaria.com/blogs/Status/archives/000271.html">« 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 »</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">
53 <li>Finished up files4ecr</li>
55 <li>PPC toolchain build W/23084 is failing</li>
59 <div id="more" class="entry-more">
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>
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
68 <div class="code"><pre>
69 <font color="#3333ff">saturn:</font><u>files4ecr-u</u>
70 Usage: files4ecr [-v] [-d] [-l] [-x] [-u] <ecr>
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)
79 ecr ECR number to search for
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>
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
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>
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
104 <p>Also, like cvs, files4ecr operates in the current context and current
105 working directory.</p>
107 <p>With -x turned on files4ecr will perform the cvs update commands
108 necessary to "pull" the versions for the ECR:</p>
110 <div class="code"><pre>
111 <font color="#3333ff">saturn:</font><u>files4ecr -x 20505</u>
112 cvs update -r10.2 SETUP.csh - Updated
113 cvs update -r10.2 etc/tconfig - Already up to date
114 cvs update -r10.6 SETUP.bash - Updated
115 cvs update -r1.1 etc/ttys-arm - Already up to date
116 cvs update -r10.13 Makefile - Updated
119 <p>And we can see that the update has taken place:</p>
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
130 <p>Anybody interested in such a script?</p>
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>
135 <div class="code"><pre>
136 /^ECR Number: (\d*)$/ or
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>
144 <h2>PPC toolchain build W/23084 is failing</h2>
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>
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>