Correcting incomplete orphans
Hi!
I wrote a small script, hope we'll have a good usage of it. (Attached.)
Please Cc me any replies, becouse I am not subscribed to this list.
CU,
--
Lenart, Janos
<ocsi@debian.org>
#!/bin/sh
# corhpan.sh Copyright (C) Lenart Janos, 2001.
# Available under GNU GPL version 2 or above.
# USAGE:
# ./corhpan.sh | mail -s "Correcting incomplete orhpans" control@bugs.debian.org
URL="http://www.debian.org/devel/wnpp/orphaned"
echo "# These retitles are to make orhpans complete, e.g. \"O: pkg -- short description\""
for BUG in `echo \`wget -O /dev/stdout "${URL}" | grep "^<li><a href=\"http://bugs.debian.org/" | grep "\">" | grep "</a>" | grep -v ": " | sed "s#<li><a href=\"http://bugs.debian.org##g" | sed "s#/##g"| sed "s#\">#:#g" | sed "s#<a>##g"\``
do
DESC="`apt-cache show \"\`echo \\"${BUG}\\" | cut -d \\":\\" -f2\`\" | grep \"^Description: \" | cut -d \" \" -f2-`"
[ "${DESC}" != "" ] && echo "retitle `echo \"${BUG}\" | cut -d \":\" -f1` O: `echo \"${BUG}\" | cut -d \":\" -f2` -- ${DESC}"
done
echo "thanks"
Reply to: