From 449ba506f3cb4abbc61361e42993e981a58a08ff Mon Sep 17 00:00:00 2001 From: Benjamin Schieder Date: Wed, 8 Dec 2004 10:24:11 +0000 Subject: [PATCH] Benjamin Schieder: fix fmnewpackage.sh Author and email address were no longer recognized [2004112618511810677] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@4990 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- misc/archive/fmnewpackage.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/misc/archive/fmnewpackage.sh b/misc/archive/fmnewpackage.sh index b4f99b8f2..09f7030e0 100644 --- a/misc/archive/fmnewpackage.sh +++ b/misc/archive/fmnewpackage.sh @@ -97,8 +97,18 @@ read_fm_config() { unset html_new rm -f header.log curl -s "$html" -o "$fmname.html" - dev_name="`grep 'contact developer' "$fmname.html" | sed 's,^[[:blank:]]*\(.*\)[[:blank:]].*$,\1,'`>" + found=0 + while read line ; do + if [ ${found} -eq 1 ] ; then + dev_name="`echo ${line} | sed 's,^ *,,g' | cut -f1,2 -d' '`" + fi + if [ "${line//Author:/}" != "${line}" ] ; then + found=1 + else + found=0 + fi + done < ${fmname}.html + dev_mail="`grep 'contact developer' "$fmname.html" | sed 's,^.*mailto:\(.*\)".*$,\1,'`" echo '__at__ @' >subst echo '__dot__ .' >>subst echo '|at| @' >>subst