*** empty log message ***
This commit is contained in:
parent
152d47306e
commit
3fc0738c81
@ -2,13 +2,15 @@ include ../mk/sysconf
|
|||||||
|
|
||||||
BIGLIB = ../lib/librcl.a
|
BIGLIB = ../lib/librcl.a
|
||||||
|
|
||||||
PROGS = idxdriver csguess
|
PROGS = recollindex csguess
|
||||||
all: $(PROGS)
|
all: $(PROGS)
|
||||||
|
|
||||||
IDXDRIVER_OBJS= idxdriver.o $(BIGLIB)
|
RECOLLINDEX_OBJS= recollindex.o $(BIGLIB)
|
||||||
idxdriver : $(IDXDRIVER_OBJS)
|
recollindex : $(RECOLLINDEX_OBJS)
|
||||||
$(CXX) $(CXXFLAGS) -o idxdriver $(IDXDRIVER_OBJS) \
|
$(CXX) $(CXXFLAGS) -o recollindex $(RECOLLINDEX_OBJS) \
|
||||||
$(LIBXAPIAN) $(LIBICONV) $(LIBSYS)
|
$(LIBXAPIAN) $(LIBICONV) $(LIBSYS)
|
||||||
|
recollindex.o : idxdriver.cpp
|
||||||
|
$(CXX) $(CXXFLAGS) -c -o recollindex.o idxdriver.cpp
|
||||||
|
|
||||||
CSGUESS_OBJS= trcsguess.o $(BIGLIB)
|
CSGUESS_OBJS= trcsguess.o $(BIGLIB)
|
||||||
csguess : $(CSGUESS_OBJS)
|
csguess : $(CSGUESS_OBJS)
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char rcsid[] = "@(#$Id: mimetype.cpp,v 1.4 2005-02-09 12:07:30 dockes Exp $ (C) 2004 J.F.Dockes";
|
static char rcsid[] = "@(#$Id: mimetype.cpp,v 1.5 2005-02-09 13:34:08 dockes Exp $ (C) 2004 J.F.Dockes";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
@ -8,6 +8,7 @@ static char rcsid[] = "@(#$Id: mimetype.cpp,v 1.4 2005-02-09 12:07:30 dockes Exp
|
|||||||
using std::string;
|
using std::string;
|
||||||
|
|
||||||
#include "mimetype.h"
|
#include "mimetype.h"
|
||||||
|
#include "debuglog.h"
|
||||||
|
|
||||||
string mimetype(const string &fn, ConfTree *mtypes)
|
string mimetype(const string &fn, ConfTree *mtypes)
|
||||||
{
|
{
|
||||||
@ -27,9 +28,11 @@ string mimetype(const string &fn, ConfTree *mtypes)
|
|||||||
it != stoplist.end(); it++) {
|
it != stoplist.end(); it++) {
|
||||||
if (it->length() > fn.length())
|
if (it->length() > fn.length())
|
||||||
continue;
|
continue;
|
||||||
if (!fn.compare(fn.length() - it->length(), string::npos,
|
if (!fn.compare(fn.length() - it->length(), string::npos, *it)) {
|
||||||
*it))
|
LOGDEB1(("mimetype: fn %s in stoplist (%s)\n", fn.c_str(),
|
||||||
|
it->c_str()));
|
||||||
return "";
|
return "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user