Newsgroups: news.admin,news.sysadmin,news.answers,news.lists
Subject: News Administration Macros for Geographic Distributions
From: mdl@wndrsvr.la.ca.us (Mr. Distribution Lists)
Date: Thu, 7 Jan 1993 05:58:27 GMT
Followup-To: news.admin,news.sysadmin
Expires: Mon, 15 Feb 1993 03:11:42 GMT
Organization: Wonder Server - Public Access for SoCal
Keywords: Macros!
Summary: Macros to make sysfile administration easier


Archive-name: distributions/macros
Version: $Id: dist.macro,v 1.3 1993/01/07 05:54:06 mdl Exp mdl $


Many many thanks to Sean Goggin for donating his time and energy to
producing this list for the rest of us!

Anyone should feel free to improve upon this excellent starting point 
provided by Sean.  I am posting it as is.  Thanks again Sean!!!


***************************************************************************

If you wish use the valid distribution list to fix news problems you may
wish to :
	- integrate all distributions in to one list
	- ask postmasters of sites with conflicting distributions
	  to use an other names
		EG
			uw  uwarwick
			uw  uwashington
			uw  uwaterloo
	- build awk programs to parse format into m4 marcos

Enclosed is version 1.1 of the marcos I sent you.
I look forward to any comments.

The current format is difficult to parse with awk, lex and yacc
will likly be needed to parse it.

# m4 macros by Sean Goggin - this is in the public domain
# $Log: dist.macro,v $
# Revision 1.3  1993/01/07  05:54:06  mdl
# Changes...
#
# Revision 1.2  1992/07/19  21:35:37  mdl
# Next revision of course.
# By Sean.
#
# Revision 1.2  92/06/18  16:52:24  sean
# *** empty log message ***
#
#
#na: North America/Mexico*,CAN,USA
define(NA, `CAN,USA')

#
#usa: United States of America/NA
#	rg: Rio Grande Valley/New Mexico*/USA
#	pnw: Pacific North West/Idaho*,OR,WA/USA
define( PNW,`pnw,OR,WA')

#	ne: New England/Connecticut*,Massachusetts*,Maine*,New Hampshire*,Rhode Island*,Vermont*/USA
#	capdist: Capital District/Albany*,Schenectady*,Troy*/NY/USA
#
#	az: Arizona/USA
#	hsv: Huntsville/Alabama*/USA
#	ca: California/USA
#		ba: San Francisco Bay Area/CA/USA
#		chico: Chico/CA/USA
#		la: Los Angeles county/CA/USA
#		oc: Orange County/CA/USA
#		sac: Sacramento/CA/USA
#		sba: Santa Barbara/CA/USA
#		scruz: Santa Cruz/CA/USA
#		sdnet: San Diego county/CA/USA
define( CA,`ca,ba,chico,la,oc,sac,sba,scruz,sdnet')
#	co: Colorado/USA
#	dc: Washington D.C./USA
#	fl: Florida/USA
#		mlb: Melbourne/BERVARD/FL/USA
#		miami: Miami/FL/USA
#		oau: Orlando/FL/USA
#		sarasota: Sarasota/FL/USA
#		tba: Tampa Bay Area/FL/USA
define( FL,`fl,mlb,miami,oau,sarasota,tba')
#	ga: Georgia/USA
#		atl: Atlanta/GA/USA
define( GA,`ga,atl')
#	ia: Iowa/USA
#		iowacity: Iowa City/IA/USA
define( IA,`ia,iowacity')
#	il: Illinois/USA
#		chi: Chicago/IL/USA
define( IL,`il,chi')
#	in: Indiana/USA
#	ks: Kansas/USA
#		mhk: Manhattan/KS/USA
#		kc: Kansas City/Kansas City metro*/USA
define( KS,`ks,mhk,kc')
#	ky: Kentucky/USA
#	lou: Louisiana/USA
#		neworleans: New Orleans/LOU/USA
define( LOU,`lou,neworleans')
#	md: Maryland/USA
#	mi: Michigan/USA
#		aa: Ann Arbor/MI/USA
#		det: Detroit/MI/USA
define( MI,`mi,aa,det')
#	mn: Minnesota/USA
#	mo: Missouri/USA
#		stl: St. Louis/MO/USA
define( MO,`mo,stl')
#	nc: North Carolina/USA
#		triangle: Research Triangle Park area/NC/USA
define( NC,`nc,triangle')
#	nj: New Jersey/USA
#		bergen: Bergen County/NJ/USA
define( NJ,`nj,bergen')
#	ny: New York/USA
#		nyc: New York City/NY/USA
#		wny: Western NY(Rochester,Buffalo)/NY/USA
define( NY,`ny,nyc,wny')
#	oh: Ohio/USA
#		akron: Akron/OH/USA
#		cle: Cleveland/OH/USA
#		cmh: Columbus/OH/USA
define( OH,`oh,akron,cle,cmh')
#	ok: Oklahoma/USA
#	or: Oregon/USA
#		pdx: Portland/OR/USA
define(	OR,`or,pdx')
#	pa: Pennsylvania/USA
#		pgh: Pittsburgh/PA/USA
#		phl: Philadelphia/PA/USA
define( PA,`pa,pgh,phl')
#	tn: Tennessee/USA
#	tx: Texas/USA
#		austin: Austin/TX/USA
#		houston: Houston/TX/USA
#		dfw: Dallas-Ft Worth/TX/USA
define( TX,`tx,austin,houston,dfw')
#	utah: Utah/USA
#	va: Virginia/USA
#		tdw: Tidewater/VA/USA
define( VA,`va,tdw')
#	wa: Washington/USA
#		sea: Seattle/WA/USA
#		seattle: Seattle/WA/USA
define( WA,`wa,sea,seattle')
#	wi: Wisconsin/USA
#		milw: Milwaukee/WI/USA
define( WI,`wi,milw')
define( USA,`rg,PNW,ne,capdist,az,hsv,CA,co,dc,FL,GA,IA,IL,KS,ky,LOU,md,MI,mn,MO,NC,NJ,NY,OH,OR,PA,tn,TX,utah,VA,WA,WI')

#
#aus: Australia
#can: Canada
#	ab: Alberta/CAN
#		edm: Edmonton/AB/CAN
define( AB,`ab,edm')
#	bc: British Columbia/CAN
#	ns: Nova Scotia/CAN
#		hfx: Halifax/NS/CAN
define( NS,`ns,hfx')
#	qc: Quebec/CAN
#		mtl: Montreal/QC/CAN
#	atl: Atlantic Provinces/NS, New Brunswick*, Prince Edward Island*, Newfoundland*/CAN
#	ont: Ontario/CAN
#		kw: Kitchener-Waterloo/ONT/CAN
#		ott: Ottawa/ONT/CAN
#		tor: Toronto/ONT/CAN
#		kingston: Kingston/ONT/CAN/NA
define(	ONT,`ont,kw,ott,tor,kingston')
define( CAN,`AB,bc,NS,qc,atl,ONT')

#ch: Switzerland
#fj: Japan
#ie: Ireland
#il: Israel
#na: Namibia
#nlnet: Netherlands
#no: Norway
#nz: New Zealand
#	wgtn: Wellington/NZ
define( NZ,`nz,wgtn')
#se: Sweden
#sfnet: Finland
#su: Soviet Union
#	relcom: Relcom/Russia*/SU
define( SU,`su,relcom')
#uk: United Kingdom
#	cov: Coventry/England*/UK
#	lon: The London UK area/England*/UK
#	midlands: Midlands Area/England*/UK
#	scot: Scotland/UK
#		ed: Edinburgh/SCOT/UK
define( SCOT,`scot,ed')
define( UK,`uk,cov,lon,midlands,SCOT')
#es: Spain/EUNET
#za: South Africa
#	uninet: University Net/ZA
define( ZA,`za,uninet')
#
#belwue: Baden-Wuerttemberg/Germany/Europe*
#stgt: Stuttgart/BELWUE/Germany*/Europe
#ka: Karlsruhe/Beden-Wuerttemberg/Germany/Europe

# Only the ME line is mandatory; the others are just samples of how to do
# things.  Virtually everything will need modifying for your local feeds
# and newsgroups.

# line indicating what we are willing to receive; note local groups on end

# You may use a macro defined above to express all the valid local groups
# for an region.
#
# For example the "CAN" in the next line will be converted all valid
# Canadian regional groups
ME:comp,news,sci,rec,misc,soc,talk,CAN

# sample insignificant feed not using batching (for special situations only)
lemsys:alt.binaries.pictures.erotica.female::uux - -r -gd lemsys!rnews
huey:news.config,to.huey/all::uux - -r -gd huey!rnews

# sample of mailing newsgroups to someone (note distribution)
daisy:soc.women,soc.couples/all::mail daisy@duck

# sample small feed using batching
gladstone:comp.protocols.tcp-ip,rec.aviation/all:f:

# sample major batched feed, including (unnecessary) explicit file name
dewey:comp,news,sci,rec,misc,soc,talk,to.dewey,can,ont,tor,ut/all:f:dewey/togo

# sample long-haul feed; note no local groups
donald:comp,news,sci,rec,misc,soc,talk,to.donald/all:f:

# sample local-postings-only feed direct to major site (gets them out fast)
scrooge:comp,news,sci,rec,misc,soc,talk,to.scrooge/all:Lf:

# sample ihave/sendme link
# NOTE, this is the old ihave/sendme, not related to NNTP in any way.
# Send ihave telling louie what we have -- batcher turns the batch into a
# giant control message and posts it to "to.louie".  (#1)
louie:comp,news,sci,rec,misc,soc,talk,!to/all,!sendme,!ihave:I:louie.ihave/togo
# Send sendme in response to ihave from louie -- again, turned by batcher
# into giant control message posted to "to.louie".  (#3)
louie-send-ids:to.louie/ihave:I:louie.sendme/togo
# Transmit said giant control messages by normal batching.  (#2,#4)
louie-ctl:to.louie/all,!sendme,!ihave:f:louie/togo
# Send articles in response to sendme messages from louie. (#5)
louie-real:to.louie/sendme:f:louie/togo
# Actually the last two could be combined.

# also, since ihave/sendme is slow, send local postings to louie without
# waiting (beware ihave/sendme)
louie-local:comp,news,sci,rec,misc,soc,talk/all,!sendme,!ihave:L:

Xref: sparky news.admin:8805 comp.mail.misc:4308