rpm  4.5
Macros | Functions | Variables
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>
Include dependency graph for parseScript.c:

Go to the source code of this file.

Macros

#define _RPMEVR_INTERNAL
 

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. More...
 

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.

Macro Definition Documentation

#define _RPMEVR_INTERNAL

Definition at line 8 of file parseScript.c.

Function Documentation

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

Variable Documentation

const char* file = NULL
static

Definition at line 58 of file parseScript.c.

Referenced by addTriggerIndex(), and parseScript().

const char* name = NULL
static

Definition at line 54 of file parseScript.c.

Referenced by parseScript().

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 60 of file parseScript.c.

Referenced by parseScript().

const char* prog = NULL
static

Definition at line 56 of file parseScript.c.

Referenced by initSourceHeaderScriptlet(), and parseScript().