Commit 06f86247 authored by Pavel Vainerman's avatar Pavel Vainerman

(Utils): добавил вспомогательную утилиту uniset2-log2val

parent 94c81aa8
bin_PROGRAMS = @PACKAGE@-log @PACKAGE@-logserver-wrap bin_PROGRAMS = @PACKAGE@-log @PACKAGE@-logserver-wrap @PACKAGE@-log2val
noinst_PROGRAMS = @PACKAGE@-test-logserver @PACKAGE@-log-stdin noinst_PROGRAMS = @PACKAGE@-test-logserver @PACKAGE@-log-stdin
@PACKAGE@_test_logserver_SOURCES = logserver.cc @PACKAGE@_test_logserver_SOURCES = logserver.cc
...@@ -16,3 +16,7 @@ noinst_PROGRAMS = @PACKAGE@-test-logserver @PACKAGE@-log-stdin ...@@ -16,3 +16,7 @@ noinst_PROGRAMS = @PACKAGE@-test-logserver @PACKAGE@-log-stdin
@PACKAGE@_logserver_wrap_SOURCES = log-wrap.cc @PACKAGE@_logserver_wrap_SOURCES = log-wrap.cc
@PACKAGE@_logserver_wrap_LDADD = $(top_builddir)/lib/libUniSet2.la $(COMCPP_LIBS) @PACKAGE@_logserver_wrap_LDADD = $(top_builddir)/lib/libUniSet2.la $(COMCPP_LIBS)
@PACKAGE@_logserver_wrap_CPPFLAGS = $(COMCPP_CFLAGS) @PACKAGE@_logserver_wrap_CPPFLAGS = $(COMCPP_CFLAGS)
@PACKAGE@_log2val_SOURCES = log2val.cc
@PACKAGE@_log2val_LDADD = $(top_builddir)/lib/libUniSet2.la
// --------------------------------------------------------------------------
#include "Debug.h"
#include "Configuration.h"
// --------------------------------------------------------------------------
using namespace UniSetTypes;
using namespace std;
// --------------------------------------------------------------------------
int main( int argc, char **argv )
{
if( argc < 2 || (argc > 1 && ( !strcmp(argv[1],"--help") || !strcmp(argv[1],"-h"))) )
{
cout << "Usage: lo2gval info,warn,crit,.... " << endl;
return 0;
}
const string s(argv[1]);
cout << (int)Debug::value(s) << endl;
return 0;
}
// --------------------------------------------------------------------------
...@@ -271,6 +271,7 @@ mv -f %buildroot%python_sitelibdir_noarch/* %buildroot%python_sitelibdir/%oname ...@@ -271,6 +271,7 @@ mv -f %buildroot%python_sitelibdir_noarch/* %buildroot%python_sitelibdir/%oname
%_bindir/%oname-stop* %_bindir/%oname-stop*
%_bindir/%oname-func* %_bindir/%oname-func*
%_bindir/%oname-codegen %_bindir/%oname-codegen
%_bindir/%oname-log2val
%dir %_datadir/%oname/ %dir %_datadir/%oname/
%dir %_datadir/%oname/xslt/ %dir %_datadir/%oname/xslt/
%_datadir/%oname/xslt/*.xsl %_datadir/%oname/xslt/*.xsl
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment