build/parseChangelog.c File Reference

Parse changelog section from spec file. More...

#include "system.h"
#include "rpmbuild.h"
#include "debug.h"

Go to the source code of this file.

Defines

#define CVS_RCSID   "$""Log: "
#define CVS_REVISION   "Revision "

Functions

void addChangelogEntry (Header h, time_t time, const char *name, const char *text)
 Add changelog entry to header.
static int dateToTimet (const char *datestr, time_t *secs)
 Parse date string to seconds.
static int addChangelog (Header h, StringBuf sb)
 Add changelog section to header.
int parseChangelog (Spec spec)
 Parse %changelog section of a spec file.


Detailed Description

Parse changelog section from spec file.

Definition in file parseChangelog.c.


Define Documentation

#define CVS_RCSID   "$""Log: "

Definition at line 11 of file parseChangelog.c.

Referenced by addChangelog().

#define CVS_REVISION   "Revision "

Definition at line 12 of file parseChangelog.c.

Referenced by addChangelog().


Function Documentation

static int addChangelog ( Header  h,
StringBuf  sb 
) [static]

Add changelog section to header.

Parameters:
h header
sb changelog strings
Returns:
0 on success

Definition at line 114 of file parseChangelog.c.

References _, addChangelogEntry(), CVS_RCSID, CVS_REVISION, dateToTimet(), getStringBuf(), name, next, RPMERR_BADSPEC, rpmError, rpmExpandNumeric(), SKIPNONSPACE, SKIPSPACE, and xisspace().

Referenced by parseChangelog().

static int dateToTimet ( const char *  datestr,
time_t *  secs 
) [static]

Parse date string to seconds.

Parameters:
datestr date string (e.g. 'Wed Jan 1 1997')
Return values:
secs secs since the unix epoch
Returns:
0 on success, -1 on error

Definition at line 41 of file parseChangelog.c.

References alloca(), SKIPNONSPACE, and SKIPSPACE.

Referenced by addChangelog().


Generated on Mon Mar 5 14:30:16 2007 for rpm by  doxygen 1.5.1