Index: head/security/uvscan-dat/files/update_dat =================================================================== --- head/security/uvscan-dat/files/update_dat (revision 49440) +++ head/security/uvscan-dat/files/update_dat (revision 49441) @@ -1,27 +1,21 @@ #!/bin/sh # # $Id$ # cd @PREFIX@/libexec/uvscan/ ftp http://download.nai.com/products/datfiles/4.x/nai/readme.txt >/dev/null -AVVER=`head -1 readme.txt | cut -d' ' -f11` -if [ "x$AVVER" = "x" ] ; then - AVVER=`grep 'DAT [0-9]* Release Date' readme.txt | head -1 | sed -e 's/^.*DAT \([0-9]*\) Release Date.*$/\1/'` -fi -if [ "x$AVVER" = "x" ] ; then - AVVER=`head -5 readme.txt | grep ' 4[0-9][0-9][0-9] ' | head -1 | sed -e 's/^.* \([0-9]*\) .*$/\1/'` -fi +AVVER=`head -5 readme.txt | grep ' 4[0-9][0-9][0-9] ' | head -1 | sed -e 's/^.* \(4[0-9]*\) .*$/\1/'` if [ ! -f dat-$AVVER.tar ]; then for i in *.tar ; do mv $i $i.old done if ftp http://download.nai.com/products/datfiles/4.x/nai/dat-$AVVER.tar >/dev/null ; then for i in *.dat ; do cp -p $i $i.bak done if tar xf dat-$AVVER.tar ; then rm -f *.old echo `date` Successfully updated AntiVirus DAT files to $AVVER fi fi fi Property changes on: head/security/uvscan-dat/files/update_dat ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.3 \ No newline at end of property +1.4 \ No newline at end of property