#!/bin/sh echo '' echo '' for f in $*; do n=${f//httpd-[0-9.]*-/} n=${n//.patch/} s_HEAD=`grep ^Upstream-HEAD $f | sed 's/Upstream-HEAD: //'` s_20=`grep ^Upstream-2.0: $f | sed 's/Upstream-2.0: //'` s_Com=`grep ^Upstream-Status: $f | sed 's/Upstream-Status: //'` s_PR=`grep ^Upstream-PR: $f | sed 's/Upstream-PR: //'` printf ' \n' $n printf ' %s\n' "$s_HEAD" printf ' %s\n' "$s_20" printf ' %s\n' "$s_Com" if [ -n "$s_PR" ]; then printf ' \n' "$s_PR" fi printf ' \n' done echo ''