Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

build/parsePrep.c File Reference

Parse prep section from spec file. More...

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

Go to the source code of this file.

Functions

int checkOwners (const char *urlfn)
 Check that file owner and group are known. More...

char* doPatch (Spec spec, int c, int strip, const char *db, int reverse, int removeEmpties)
 Expand patchN macro into prep scriptlet. More...

const char* doUntar (Spec spec, int c, int quietly)
 Expand setup macro into prep scriptlet. More...

int doSetupMacro (Spec spec, char *line)
 Parse setup macro. More...

int doPatchMacro (Spec spec, char *line)
 Parse patch line. More...

int parsePrep (Spec spec)

Variables

int leaveDirs
int skipDefaultAction
int createDir
int quietly
const char* dirName = NULL


Detailed Description

Parse prep section from spec file.

Definition in file parsePrep.c.


Function Documentation

int checkOwners ( const char * urlfn ) [static]
 

Check that file owner and group are known.

Parameters:
urlfn   file url
Returns:
0 on success

Definition at line 32 of file parsePrep.c.

Referenced by doPatch(), and doUntar().

char * doPatch ( Spec spec,
int c,
int strip,
const char * db,
int reverse,
int removeEmpties ) [static]
 

Expand patchN macro into prep scriptlet.

Parameters:
spec   build info
c   patch index
strip   patch level (i.e. patch -p argument)
db   saved file suffix (i.e. patch --suffix argument)
reverse   include -R?
removeEmpties   include -E?
Returns:
expanded patch macro (NULL on error)

Definition at line 59 of file parsePrep.c.

Referenced by doPatchMacro().

int doPatchMacro ( Spec spec,
char * line ) [static]
 

Parse patch line.

Parameters:
spec   build info
line   current line from spec file
Returns:
0 on success

Definition at line 409 of file parsePrep.c.

Referenced by parsePrep().

int doSetupMacro ( Spec spec,
char * line ) [static]
 

Parse setup macro.

Todo:
FIXME: Option -q broken when not immediately after setup.
Parameters:
spec   build info
line   current line from spec file
Returns:
0 on success

Definition at line 261 of file parsePrep.c.

Referenced by parsePrep().

const char * doUntar ( Spec spec,
int c,
int quietly ) [static]
 

Expand setup macro into prep scriptlet.

Parameters:
spec   build info
c   source index
quietly   should -vv be omitted from tar?
Returns:
expanded setup macro (NULL on error)

Definition at line 149 of file parsePrep.c.

Referenced by doSetupMacro().


Variable Documentation

int createDir [static]
 

Definition at line 14 of file parsePrep.c.

const char * dirName = NULL [static]
 

Definition at line 15 of file parsePrep.c.

int leaveDirs [static]
 

Definition at line 13 of file parsePrep.c.

int quietly
 

Definition at line 14 of file parsePrep.c.

int skipDefaultAction
 

Definition at line 13 of file parsePrep.c.


Generated at Sun Apr 8 18:43:03 2001 for rpm by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000