#include <unistd.h>
#include <sys/stat.h>
#include <errno.h>
#include <libintl.h>
#include <scrollkeeper.h>
#ifdef ENABLE_NLS
#else
#define _(x) x
#endif
typedef struct {
char *filename;
char *locale;
int locale_num, i;
int locale_tree_error=0;
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, SCROLLKEEPERLOCALEDIR);
textdomain (PACKAGE);
if (argc != 3) {
usage();
#include <dirent.h>
#define PATHLEN 256
#define _(String) gettext (String)
#define _(String) String
/*
* Create a directory. Send errors to appropriate places (STDOUT and log
#include <string.h>
#include <stdlib.h>
#include <time.h>
* sk_warning:
* This is a general purpose function for sending error and
#include <config.h>
#include <locale.h>
#include <libxslt/xslt.h>
#include <libxslt/xsltInternals.h>
#include <libxslt/transform.h>
extern int xmlLoadExtDtdDefaultValue;
int apply_stylesheets (char *input_file, char *type, int stylesheet_num,
#define SEP "|"
int update_doc_url_in_omf_file(char *omf_name, char *url, char *omf_new_name)
{
static xmlExternalEntityLoader defaultEntityLoader = NULL;
static void usage()
char *omf_name, *url, *omf_new_name;
int i;
if (argc < 3) {
#include <stdio.h>
#include <libxml/tree.h>
#include <utime.h>
#include <pwd.h>
* make_local_tmpdir:
* @dirname: directory name.
xmlDocPtr merged_tree;
char outputprefs=0;
usage(argc, argv);
if (argc == 1) {
printf(_("Usage: scrollkeeper-uninstall [-v] [-q] [-p <SCROLLKEEPER_DB_DIR>] <OMF FILE>\n"));
if (argc == 1)
static char **av;
static char config_omf_dir[PATHLEN];
av = argv;
scrollkeeper_dir[0] = '\0';
omf_dir[0] = '\0';
printf(_("Usage: scrollkeeper-extract <xml file> <stylesheet 1> <output file 1> <stylesheet 2> <output file 2> ...\n"));
char *extension;
num = (argc-2)/2;
*/
#include <uuid.h>
int
main (int argc, char *argv[])
if (argc > 1)
if (strcmp (argv[1], "--help") == 0)