#!/bin/sh # # fedora-submit -- ship RPMs to Fedora # # TO-DO: # * When there are more Fedora `products' than Core, support selecting one. # * Might want to let user set the Severity field for bug fixes. charset=latin1 while [ $# != 0 ] do case $1 in -c) charset=$2; shift ;; *) name=`rpm --queryformat="%{name}" -qp $1 2>/dev/null` version=`rpm --queryformat="%{version}" -qp $1 2>/dev/null` description=`rpm --queryformat="%{description}" -qp $1 2>/dev/null | iconv -f $charset -t utf-8` arch=`rpm --queryformat="%{arch}" -qp $1 2>/dev/null` url=`rpm --queryformat="%{url}" -qp $1 2>/dev/null` if [ $arch = 'noarch' ] then arch=All fi cat <