Browse Source

Benjamin Schieder:


			
			
				rocklinux
			
			
		
Benjamin Schieder 20 years ago
parent
commit
449ba506f3
1 changed files with 12 additions and 2 deletions
  1. +12
    -2
      misc/archive/fmnewpackage.sh

+ 12
- 2
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:]]<a.*$,\1,' | sed 's, *$,,g'`"
dev_mail="<`grep 'contact developer' "$fmname.html" | sed 's,^.*<a href=\"mailto:\(.*\)\">.*$,\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

Loading…
Cancel
Save