33 int main(
int argc,
char* argv[])
37 char fname[FILENAME_MAX + 1];
41 sysconfigdir = DEFAULT_SETUP;
44 snprintf(fname, FILENAME_MAX,
"%s/%s", sysconfigdir,
"fossology.conf");
48 fprintf(stderr,
"FATAL %s.%d: unable to open system configuration: %s\n",
49 __FILE__, __LINE__, error->message);
55 fprintf(stderr,
"FATAL %s.%d: Build error, unspecified system configuration location.\n",
62 fprintf(stderr,
"Usage: %s type filename [type filename [...]]\n", argv[0]);
66 for (i = 1; i < argc; i += 2)
76 fprintf(stderr,
"ERROR: type='%s' filename='%s' invalid.\n",
77 argv[i], argv[i + 1]);
The main FOSSology C library.
char * fo_RepMkPath(const char *Type, char *Filename)
Given a filename, construct the full path to the file.
fo_conf * fo_config_load(char *rawname, GError **error)
Load the configuration information from the provided file.