DIRCONFOBJS = ../dird/dird_conf.o ../dird/run_conf.o ../dird/inc_conf.o
NODIRTOOLS = bsmtp
-DIRTOOLS = bsmtp dbcheck drivetype fstype testfind testls bregex bwild bbatch
+DIRTOOLS = bsmtp dbcheck drivetype fstype testfind testls bregex bwild bbatch bregtest
TOOLS = $(@DIR_TOOLS@)
INSNODIRTOOLS = bsmtp
bsmtp: bsmtp.o ../lib/libbac.a
$(CXX) $(LDFLAGS) -L../lib -o $@ bsmtp.o -lbac -lm $(DLIB) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS)
+bregtest: bregtest.o ../lib/libbac.a
+ $(CXX) $(LDFLAGS) -L../lib -o $@ bregtest.o -lbac -lm $(DLIB) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS)
+
dbcheck: dbcheck.o ../lib/libbac.a ../cats/libsql.a $(DIRCONFOBJS)
$(CXX) $(LDFLAGS) -L../lib -L../cats -o $@ dbcheck.o $(DIRCONFOBJS) -lsql -lbac -lm $(DB_LIBS) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS)
int main(int argc, char *const *argv)
{
- char tab[500];
- int len = bregexp_get_build_where_size("/tmp", "/tmp/toto", ".old");
-
- printf("%s\n", bregexp_build_where(tab, len, "/tmp", "/tmp/toto!", ".old"));
- exit(0);
-
-
- regex_t preg;
- char prbuf[500];
char *fname = NULL;
char *expr = NULL;
- int rc, ch;
+ int ch;
char data[1000];
- char pat[500];
FILE *fd;
- bool match_only = true;
- int lineno;
- bool no_linenos = false;
-
setlocale(LC_ALL, "");
bindtextdomain("bacula", LOCALEDIR);