diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/fdp-functions | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bin/fdp-functions b/bin/fdp-functions index e57f2a2..982154a 100644 --- a/bin/fdp-functions +++ b/bin/fdp-functions @@ -84,6 +84,20 @@ version() echo } +date() +{ + # Return latest date for an optional role argument + if [ ! -z "$1" ]; then + OPTS="--stringparam role $1" + fi + if [ -f "${RPMINFO}" ]; then + ${XSLTPROC} ${OPTS} "${FDPPKGDIR}/doc-date.xsl" "$RPMINFO" + else + echo -n TBD + fi + echo +} + iso2date() { # Convert ISO format date (YYYY-MM-DD) to ctime(3) # format, which is needed by the "rpm-info.xml" <revision@date> @@ -109,6 +123,10 @@ get_latest_revision() { version $@ } +get_latest_date() { + date $@ +} + validate_rpm_info() { xmllint --noout --valid ${RPMINFO} && echo ${RPMINFO} OK } |