From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- .../x-cvsweb-markup/index.html | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 cvs/cvsweb.cgi/code/tool/build/buildquiet?rev=1.2&content-type=text/x-cvsweb-markup/index.html (limited to 'cvs/cvsweb.cgi/code/tool/build/buildquiet?rev=1.2&content-type=text/x-cvsweb-markup') 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 @@ + + + +code/tool/build/buildquiet - view - 1.2 + +
[BACK] Return to buildquiet + CVS log [TXT][DIR] Up to Nevrax / code / tool / build

File: Nevrax / code / tool / build / buildquiet (download)
+Revision 1.2, Tue May 7 10:05:49 2002 UTC (8 weeks ago) by valignat +
Branch: MAIN +
CVS Tags: HEAD
Changes since 1.1: +3 -3 + lines
+Renamed the 'silent' option in 'qiuet', it makes more sense.
+
+

#!/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
+
+
\ No newline at end of file -- cgit v1.2.1