2004-10-13 10:44:51 +00:00
|
|
|
#!/bin/sh
|
|
|
|
echo '<?xml version="1.0" encoding="UTF-8"?>'
|
|
|
|
echo '<patches>'
|
|
|
|
for f in $*; do
|
2004-10-15 15:36:49 +00:00
|
|
|
n=${f//httpd-2\.0\.[0-9]*-/}
|
2004-10-13 10:44:51 +00:00
|
|
|
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: //'`
|
2004-10-13 16:35:07 +00:00
|
|
|
s_PR=`grep ^Upstream-PR: $f | sed 's/Upstream-PR: //'`
|
|
|
|
printf ' <patch name="%s">\n' $n
|
|
|
|
printf ' <status branch="HEAD">%s</status>\n' "$s_HEAD"
|
|
|
|
printf ' <status branch="2.0">%s</status>\n' "$s_20"
|
|
|
|
printf ' <comment>%s</comment>\n' "$s_Com"
|
|
|
|
if [ -n "$s_PR" ]; then
|
|
|
|
printf ' <bug pr="%s"/>\n' "$s_PR"
|
|
|
|
fi
|
|
|
|
printf ' </patch>\n'
|
2004-10-13 10:44:51 +00:00
|
|
|
done
|
|
|
|
echo '</patches>'
|