#!/bin/sh ME=`basename $0` BINDIR=`dirname $0` USAGE="usage: ${ME} [-o ofile] document.xml" ofile= while getopts o: c do case "${c}" in o) ofile="${OPTARG}";; *) echo "${USAGE}" >&2; exit 1;; esac done shift `expr ${OPTIND} - 1` if [ $# -ne 1 ]; then echo "${USAGE}" >&2 exit 1 fi if [ "${ofile}" ]; then rm -f "${ofile}" exec >"${ofile}" fi xsltproc ${BINDIR}/../packaging/info2rpminfo.xsl $1 | ${BINDIR}/xmlformat -f ${BINDIR}/xmlformat-fdp.conf