diff options
Diffstat (limited to '')
-rw-r--r-- | cvs/cvsweb.cgi/code/tool/build/buildquiet?rev=1.2&content-type=text/x-cvsweb-markup/index.html | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/cvs/cvsweb.cgi/code/tool/build/buildquiet?rev=1.2&content-type=text/x-cvsweb-markup/index.html b/cvs/cvsweb.cgi/code/tool/build/buildquiet?rev=1.2&content-type=text/x-cvsweb-markup/index.html new file mode 100644 index 00000000..9b799f85 --- /dev/null +++ b/cvs/cvsweb.cgi/code/tool/build/buildquiet?rev=1.2&content-type=text/x-cvsweb-markup/index.html @@ -0,0 +1,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="http://www.nevrax.org/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="http://www.nevrax.org/inc/img/picto-news.gif" ALT="[TXT]" BORDER="0" WIDTH="13" HEIGHT="15"></td><td align=right><IMG SRC="http://www.nevrax.org/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> (<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: +# +# This tool is aimed to "cleanup" the 'make' command output to only +# print the compiled file name instead of the compilation 'command'. +# +# 'buildquiet' is used by the 'build' script. +# +########################################################################### + +if ( ! ( /^((Making)|(\/bin\/sh)|(.*rm)|(mkdir)|(mv)|(ar)|(ranlib)|(echo)|(\(cd)|(\(?ln))\s/ )) +{ + # Replace 'make[2]: ' line + s/^make\[\d\]\:\s(.*)$/$1/; + + # Replace the library creation line by only the library file name + s/^(ccache\s+)?(((gcc)|([cg]\+\+))\s-shared)\s.*\.libs\/([\w\.]+)$/ $6/; + + # Replace the file compilation line by only the compiled file name + s/^(ccache\s+)?(gcc|([cg]\+\+)).*\s.+\/([\w\.]+.cpp).*$/ $4/; + s/^(ccache\s+)?(gcc|([cg]\+\+)).*\s.+-o\s([\w\.]+).*$/ $4/; + + # Replace the install line + s/\s*\/usr\/bin\/install\s.*\s+(\.libs\/)?([^-][\.\w\-]+)\s+.*$/ Installing $2/; + + if ( ! /^Nothing/ ) { + print; + } +} + +# End of file + +</PRE>
\ No newline at end of file |