aboutsummaryrefslogtreecommitdiff
path: root/cvs/cvsweb.cgi/code/tool/build/buildquiet?rev=1.2&content-type=text/x-cvsweb-markup/index.html
blob: fc89f56fb55b82dbf63c4bf297f99c7143c00d12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML>
<HEAD><style>		A { color:black }</style>
<!-- hennerik CVSweb $Revision: 1.93 $ -->
<TITLE>code/tool/build/buildquiet - view - 1.2</TITLE></HEAD>
<BODY BGCOLOR="#eeeeee">
<table width="100%" border=0 cellspacing=0 cellpadding=1 bgcolor="#aaaaaa"><tr valign=bottom><td><a href="buildquiet"><IMG SRC="/inc/img/picto-up.gif" ALT="[BACK]" BORDER="0" WIDTH="14" HEIGHT="13"></a> <b>Return to <A HREF="buildquiet">buildquiet</A>
 CVS log</b> <IMG SRC="/inc/img/picto-news.gif" ALT="[TXT]" BORDER="0" WIDTH="13" HEIGHT="15"></td><td align=right><IMG SRC="/inc/img/picto-dir.gif" ALT="[DIR]" BORDER="0" WIDTH="15" HEIGHT="13"> <b>Up to  <a href="/cvs/cvsweb.cgi/">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/">code</a> / <a href="/cvs/cvsweb.cgi/code/tool/">tool</a> / <a href="/cvs/cvsweb.cgi/code/tool/build/">build</a></b></td></tr></table><HR noshade><table width="100%"><tr><td bgcolor="#ffffff">File:  <a href="/cvs/cvsweb.cgi/">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/">code</a> / <a href="/cvs/cvsweb.cgi/code/tool/">tool</a> / <a href="/cvs/cvsweb.cgi/code/tool/build/">build</a> / <a href="/cvs/cvsweb.cgi/code/tool/build/buildquiet">buildquiet</a>&nbsp;(<A HREF="/cvs/cvsweb.cgi/~checkout~/code/tool/build/buildquiet?rev=1.2" target="cvs_checkout" onClick="window.open('/cvs/cvsweb.cgi/~checkout~/code/tool/build/buildquiet?rev=1.2','cvs_checkout','resizeable,scrollbars');"><b>download</b></A>)<BR>
Revision <B>1.2</B>, <i>Tue May  7 10:05:49 2002 UTC</i> (8 weeks ago) by <i>valignat</i>
<BR>Branch: <b>MAIN</b>
<BR>CVS Tags: <b>HEAD</b><BR>Changes since <b>1.1: +3 -3
 lines</b><PRE>
Renamed the 'silent' option in 'qiuet', it makes more sense.
</PRE>
</td></tr></table><HR noshade><PRE>#!/usr/bin/perl -n

###########################################################################
# $Id: buildquiet,v 1.2 2002/05/07 10:05:49 valignat Exp $
###########################################################################
###########################################################################
###########################################################################
# BUILDQUIET:
#
# &nbsp; &nbsp; This tool is aimed to &quot;cleanup&quot; the 'make' command output to only
# &nbsp; &nbsp; print the compiled file name instead of the compilation 'command'.
#
# &nbsp; &nbsp; 'buildquiet' is used by the 'build' script.
#
###########################################################################

if ( ! ( /^((Making)|(\/bin\/sh)|(.*rm)|(mkdir)|(mv)|(ar)|(ranlib)|(echo)|(\(cd)|(\(?ln))\s/ ))
{
 &nbsp; &nbsp;# Replace 'make[2]: ' line
 &nbsp; &nbsp;s/^make\[\d\]\:\s(.*)$/$1/;

 &nbsp; &nbsp;# Replace the library creation line by only the library file name
 &nbsp; &nbsp;s/^(ccache\s+)?(((gcc)|([cg]\+\+))\s-shared)\s.*\.libs\/([\w\.]+)$/ &nbsp; &nbsp;$6/;

 &nbsp; &nbsp;# Replace the file compilation line by only the compiled file name
 &nbsp; &nbsp;s/^(ccache\s+)?(gcc|([cg]\+\+)).*\s.+\/([\w\.]+.cpp).*$/ &nbsp; &nbsp;$4/;
 &nbsp; &nbsp;s/^(ccache\s+)?(gcc|([cg]\+\+)).*\s.+-o\s([\w\.]+).*$/ &nbsp; &nbsp;$4/;

 &nbsp; &nbsp;# Replace the install line
 &nbsp; &nbsp;s/\s*\/usr\/bin\/install\s.*\s+(\.libs\/)?([^-][\.\w\-]+)\s+.*$/ &nbsp; &nbsp;Installing $2/;

 &nbsp; &nbsp;if ( ! /^Nothing/ ) {
 &nbsp; &nbsp; &nbsp; &nbsp;print;
 &nbsp; &nbsp;}
}

# End of file

</PRE>