summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-10-24 21:42:57 +0000
committerjbj <devnull@localhost>2002-10-24 21:42:57 +0000
commit6328dbbbf043ee08a7e5c1cbe880d03af60adca4 (patch)
tree7f6878d2810e074af011c30094dc32e1c3c347e8 /build
parent4cf0b35006a640b6d24284583aee283b0612121d (diff)
downloadlibrpm-tizen-6328dbbbf043ee08a7e5c1cbe880d03af60adca4.tar.gz
librpm-tizen-6328dbbbf043ee08a7e5c1cbe880d03af60adca4.tar.bz2
librpm-tizen-6328dbbbf043ee08a7e5c1cbe880d03af60adca4.zip
Kill tfr.c, use rpmdeps.
CVS patchset: 5816 CVS date: 2002/10/24 21:42:57
Diffstat (limited to 'build')
-rw-r--r--build/Makefile.am12
-rw-r--r--build/tfr.c95
2 files changed, 0 insertions, 107 deletions
diff --git a/build/Makefile.am b/build/Makefile.am
index fea1ba21b..ff4a0055c 100644
--- a/build/Makefile.am
+++ b/build/Makefile.am
@@ -13,18 +13,6 @@ INCLUDES = -I. \
LIBS =
-EXTRA_PROGRAMS = tfr
-tfr_SOURCES = tfr.c
-tfr_LDFLAGS = -all-static
-tfr_LDADD = \
- $(top_builddir)/build/librpmbuild.la \
- $(top_builddir)/lib/librpm.la \
- $(top_builddir)/rpmdb/librpmdb.la \
- $(top_builddir)/rpmio/librpmio.la \
- $(top_builddir)/popt/libpopt.la \
- @WITH_LIBELF_LIB@ \
- @INTLLIBS@
-
pkgincdir = $(pkgincludedir)
pkginc_HEADERS = rpmbuild.h rpmspec.h
noinst_HEADERS = argv.h buildio.h rpmfc.h
diff --git a/build/tfr.c b/build/tfr.c
deleted file mode 100644
index 012056223..000000000
--- a/build/tfr.c
+++ /dev/null
@@ -1,95 +0,0 @@
-#include "system.h"
-
-#include <rpmbuild.h>
-#include <argv.h>
-#include <rpmfc.h>
-
-#include "debug.h"
-
-static int print_provides;
-static int print_requires;
-
-static struct poptOption optionsTable[] = {
-
- { NULL, '\0', POPT_ARG_INCLUDE_TABLE, rpmcliAllPoptTable, 0,
- N_("Common options for all rpm modes and executables:"),
- NULL },
-
- { "rpmfcdebug", 'd', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmfc_debug, -1,
- NULL, NULL },
-
- { "provides", 'P', POPT_ARG_VAL, &print_provides, -1,
- NULL, NULL },
- { "requires", 'R', POPT_ARG_VAL, &print_requires, -1,
- NULL, NULL },
-
- POPT_AUTOALIAS
- POPT_AUTOHELP
- POPT_TABLEEND
-};
-
-int
-main(int argc, char *const argv[])
-{
- static const char * av_file[] = { "%{?__file}", NULL };
- poptContext optCon;
- StringBuf sb;
- ARGV_t xav;
- ARGV_t av = NULL;
- rpmfc fc;
- int ac = 0;
- int ec = 1;
- int xx;
-char buf[BUFSIZ];
-
- optCon = rpmcliInit(argc, argv, optionsTable);
- if (optCon == NULL)
- goto exit;
-
- av = poptGetArgs(optCon);
- ac = argvCount(av);
-
- if (ac == 0) {
- poptPrintUsage(optCon, stderr, 0);
- return 1;
- }
-
- xav = NULL;
- xx = argvAppend(&xav, av_file);
- xx = argvAppend(&xav, av);
-
- sb = NULL;
- xx = rpmfcExec(xav, NULL, &sb, 1);
-
- xav = argvFree(xav);
-
- xx = argvSplit(&xav, getStringBuf(sb), "\n");
- sb = freeStringBuf(sb);
-
- xx = argvSort(xav, NULL);
-
- /* Build file class dictionary. */
- fc = rpmfcNew();
- xx = rpmfcClassify(fc, xav);
-
- /* Build file/package dependency dictionary. */
- xx = rpmfcApply(fc);
-
-if (_rpmfc_debug) {
-sprintf(buf, "final: files %d cdict[%d] %d%% ddictx[%d]", fc->nfiles, argvCount(fc->cdict), ((100 * fc->fknown)/fc->nfiles), argiCount(fc->ddictx));
-rpmfcPrint(buf, fc, NULL);
-}
-
- if (print_provides)
- argvPrint(NULL, fc->provides, stdout);
- if (print_requires)
- argvPrint(NULL, fc->requires, stdout);
-
- fc = rpmfcFree(fc);
-
- xav = argvFree(xav);
-
-exit:
- optCon = rpmcliFini(optCon);
- return ec;
-}