head 1.3; access; symbols RELEASE_8_3_0:1.3 RELEASE_9_0_0:1.3 RELEASE_7_4_0:1.3 RELEASE_8_2_0:1.3 RELEASE_6_EOL:1.3 RELEASE_8_1_0:1.3 RELEASE_7_3_0:1.3 RELEASE_8_0_0:1.3 RELEASE_7_2_0:1.3 RELEASE_7_1_0:1.3 RELEASE_6_4_0:1.3 RELEASE_5_EOL:1.3 RELEASE_7_0_0:1.3 RELEASE_6_3_0:1.3 PRE_XORG_7:1.3 old_RELEASE_4_EOL:1.3 old_RELEASE_6_2_0:1.3 old_RELEASE_6_1_0:1.3 old_RELEASE_5_5_0:1.3 old_RELEASE_6_0_0:1.3 old_RELEASE_5_4_0:1.3 old_RELEASE_4_11_0:1.3 old_RELEASE_5_3_0:1.3; locks; strict; comment @# @; 1.3 date 2004.06.25.12.39.35; author eik; state Exp; branches; next 1.2; 1.2 date 2004.06.17.07.13.37; author eik; state Exp; branches; next 1.1; 1.1 date 2004.06.14.08.04.41; author eik; state Exp; branches; next ; desc @@ 1.3 log @Update to 0.2.2 - correct some URLs @ text @#!/usr/bin/awk -f BEGIN { XMLFILE=ARGV[2] delete ARGV[2] while (getline < XMLFILE) { if (/<\/vuxml>/) break print } XML=$0 FS="|" } /^(#|$)/ { next } { if (PKG[$4]) PKG[$4]=PKG[$4] FS $1 else PKG[$4]=$1 gsub(//, ">") gsub(/&/, "&") URL[$4]=$2 TOPIC[$4]=$3 } END { OPN["<"]="lt" OPN["<="]="le" OPN["="]="eq" OPN[">="]="ge" OPN[">"]="gt" for (UUID in PKG) { print " " print " " TOPIC[UUID] "" print " " split(PKG[UUID], APKG) for (TPKG in APKG) { VERS=APKG[TPKG] print " " if (match(VERS, /(<|>)=?|=/) > 0) { print " " substr(VERS, 1, RSTART-1) "" printf " " do { OP=substr(VERS, RSTART, RLENGTH) LEN=length(VERS) VERS=substr(VERS, RSTART+RLENGTH, LEN+1-RSTART-RLENGTH) NEXTRANGE=match(VERS, /(<|>)=?|=/) if (NEXTRANGE > 0) printf "<%s>%s", OPN[OP], substr(VERS, 1, RSTART-1), OPN[OP] else printf "<%s>%s", OPN[OP], VERS, OPN[OP] } while (NEXTRANGE > 0) printf "\n" } else { print " " VERS "" } print " " } print " " print " " print " " print "

Please contact" print " the FreeBSD Security Team for more information.

" print " " print "
" print " " split(URL[UUID], URLS, / /) for (U in URLS) { if (!URLS[U]) continue print " " URLS[U] "" } print " " print " " print " 2000-00-00" print " 2000-00-00" print " " print "
" print "" } print XML while (getline < XMLFILE) { print } close(XMLFILE) } @ 1.2 log @update to 0.2 - add the ability to specify multiple URLs @ text @d69 2 a70 2 print "

Please contact" print " the FreeBSD Security Officer for more information.

" d94 1 @ 1.1 log @update to 0.1.1, supporting some of the VuXML 1.1 features @ text @d52 2 a53 2 XXX=match(VERS, /(<|>)=?|=/) if (XXX > 0) d57 1 a57 1 } while (XXX > 0) d74 8 a81 1 print " " URL[UUID] "" @