build/parseScript.c File Reference

Parse install-time script section from spec file. More...

#include "system.h"
#include "rpmbuild.h"
#include "debug.h"
#include <rpmlua.h>

Go to the source code of this file.

Functions

static int addTriggerIndex (Package pkg, const char *file, const char *script, const char *prog)
int parseScript (Spec spec, int parsePart)
 Parse %pre et al scriptlets from a spec file.

Variables

static const char * name = NULL
static const char * prog = NULL
static const char * file = NULL
static struct poptOption optionsTable []


Detailed Description

Parse install-time script section from spec file.

Definition in file parseScript.c.


Function Documentation

static int addTriggerIndex ( Package  pkg,
const char *  file,
const char *  script,
const char *  prog 
) [static]

Definition at line 18 of file parseScript.c.

References TriggerFileEntry::index, TriggerFileEntry::next, Package_s::triggerFiles, xcalloc(), and xstrdup().

Referenced by parseScript().


Variable Documentation

const char* file = NULL [static]

Definition at line 57 of file parseScript.c.

const char* name = NULL [static]

Definition at line 53 of file parseScript.c.

struct poptOption optionsTable[] [static]

Initial value:

 {
        { NULL, 'p', POPT_ARG_STRING, &prog, 'p',       NULL, NULL},
        { NULL, 'n', POPT_ARG_STRING, &name, 'n',       NULL, NULL},
        { NULL, 'f', POPT_ARG_STRING, &file, 'f',       NULL, NULL},
        { 0, 0, 0, 0, 0,        NULL, NULL}
    }

Definition at line 59 of file parseScript.c.

const char* prog = NULL [static]

Definition at line 55 of file parseScript.c.

Referenced by parseScript().


Generated on Fri Oct 12 08:44:55 2007 for rpm by  doxygen 1.5.2