===================================================================
RCS file: /cvsrepo/anoncvs/cvs/www/Attic/support.awk,v
retrieving revision 1.3
retrieving revision 1.4
diff -c -r1.3 -r1.4
*** www/Attic/support.awk 1999/09/20 14:30:53 1.3
--- www/Attic/support.awk 1999/09/23 21:54:57 1.4
***************
*** 1,6 ****
#!/usr/bin/nawk -f
! # used both by support.bld and by groups.bld, since the formats are similar
# convert data like this (order doesn't matter except 0 at front)
# 0
--- 1,6 ----
#!/usr/bin/nawk -f
! # used by support.bld to generate the table in support.html
# convert data like this (order doesn't matter except 0 at front)
# 0
***************
*** 8,13 ****
--- 8,14 ----
# P Ontario
# T Palgrave
# A R R # 1
+ # Z L0N 1P0
# O Consultant
# I Ian F. Darwin
# M ian@darwinsys.com
***************
*** 28,34 ****
$1 == "C" { country = substr($0, 2);
if (country != oldCountry) {
! print "
" country ""
}
oldCountry = country
next
--- 29,35 ----
$1 == "C" { country = substr($0, 2);
if (country != oldCountry) {
! print " |
" country ""
}
oldCountry = country
next
***************
*** 36,41 ****
--- 37,43 ----
$1 == "P" { prov = substr($0, 2); next }
$1 == "T" { city = substr($0, 2); next }
$1 == "A" { addr = substr($0, 2); next }
+ $1 == "Z" { zip = substr($0, 2); next }
$1 == "O" { org = substr($0, 2); next }
$1 == "I" { indv = substr($0, 2); next }
$1 == "B" { phone = substr($0, 2); next }
***************
*** 54,70 ****
print " |
"
print ""
if (indv != "")
! print indv " "
! print org " " addr
! print " | " city " " prov
! print " | "
if (phone != "")
! print phone " "
! print fax
! print " | "
if (email != "")
! print "" email "" " "
! print "" url ""
print " | " note
}
--- 56,82 ----
print " |
"
print ""
if (indv != "")
! print "Name: " indv " "
! if (org != "")
! print "Organization: " org " "
! if (addr != "")
! print "Address: " addr " "
! if (city != "") {
! print "City: " city
! if (prov != "")
! print ", " prov
! if (zip != "")
! print " " zip
! print " "
! }
if (phone != "")
! print "Phone: " phone " "
! if (fax != "")
! print "FAX: " fax " "
if (email != "")
! print "Email: " email "" " "
! if (url != "")
! print "URL: " url ""
print " | " note
}
***************
*** 72,77 ****
--- 84,90 ----
prov = ""
city = ""
addr = ""
+ zip = ""
org = ""
indv = ""
email = ""
|