# ~jhs/public_html/Distfile

DEMO=public_html/brexit/pictures
# If I were to instead assert
#	DEMO=public_html/brexit/pictures/2018-06-23_de_munich
# then I could create & rdist update a
#	public_html/brexit/pictures/README
# with eg "if found unlocked, tell jhs@"
# OTOH if 2018-06-23_de_munich ever moved within pictures/
# or I created eg pictures/newer-dates-or-london then they would not be locked.
# Theres now also public_html/brexit/pictures/2019-02-03_de_munich

int2gate:	# cd ~/public_html ; make int2gate
	public_html -> ( gate )	# only the 1 gate in case other not on
	except ( ${DEMO} ) ;
	except_pat \*\\.lmth ;
	except_pat \*\\.ps ;
	except_pat \*\\.eps ;
	# except_pat \*\.hjm ;
	# except_pat \*\.hts ;
	# except_pat to avoid clutering small gate disk.
	install -R ;
	# except_pat \*\.lmth; # wrongly omits bin/.sh/html2lmth
	# except_pat \*.lmth ; # wrongly omits bin/.sh/html2lmth
	# except_pat \*\\.lmth # correctly copies bin/.sh/html2lmth
	# notify jhs@localhost ;
	# Avoiding \*.lmth only avoid 20M, but also lots of stat() or open():
	# find . -name \*.lmth | wc -l # 379

int2gates:#	cd ~/public_html ; make int2gates
	public_html -> ( park mart ) # jail
#		gates	only does 1 of 2 hosts
#		( park mart ) may complain
#			Unexpected input from server: (host that''s off)
	except_pat \*\\.lmth ;
	except_pat \*\\.ps ;
	except_pat \*\\.eps ;
	install -R ;

REMOTE	= ( land.berklix.org ) # slim.berklix.org
# On internal:		rsh gate; 	cd ~/public_html ; make ext2remo
# Or on wlan laptop: 			cd ~/public_html ; make ext2remo
ext2remo:
	public_html -> ( ${REMOTE} )
	except_pat \*\\.lmth ;
	except_pat \*\\.ps ;
	except_pat \*\\.eps ;
	except_pat \*\\.LN ;
	# except_pat \*\.hjm ;
	# except_pat \*\.hts ;
	# except_pat above also here (as well as in int2gate) because sometimes
	# lapr.no.berklix.net uses this label to export direct to REMOTE.
	# except_pat \*\.nts ;
	# Line above still stops update of directory: consultants
	except ( ${DEMO} ) ;
	except ( public_html/brexit/declarations ) ;
	install -R ;
	# notify jhs@localhost ;

bin2gate:	# If I'm desperate for space on gate
	( public_html/bin ) -> ( gate )
	# ( public_html/Distfile public_html/Distfile.chroot \
	#  public_html/Makefile public_html/Makefile.inc )
	# not exported, to prevent a stripped dir
	# on gate being exported to servers.

2jail:	# cd ~/pu*l/.. && pwd && rdist6 -P /usr/bin/ssh -f pu*l/Distfile 2jail
	public_html -> ( test )
	except_pat \*\\.lmth ;
	install -R ;

	#	need @localhost else it bounces on jhs @ ex sl im now slam.js.berklix.net
usb.ufs:# cd ~/public_html ; make usb.ufs
	public_html -> ( localhost )
	install -R /usb/celldisk/ufs/public_html ;
	notify jhs ;

# cd ~/pu*l/.. && xs rdist6 -P /usr/bin/ssh -oignlnks -onochkowner \
#	-onochkgroup -onochkmode -f public_html/Distfile usb.dos
usb.dos: # cd ~/public_html ; make usb.dos
	public_html/cv -> ( localhost )
	install -R /usb/celldisk/dos/cv ;

2lap:	# JJLATER No hook in Makefile
	. -> ( laps lapd ) # lapa
	install -w -R ._/public_html ;

NOCD = ( ./.rhosts ./berklix ./bim ./dots ./faraday ./flights ./freebsd/faces
	./freebsd/labels ./ftp ./fun ./gea ./hardware ./hardware/surplus/
	./harries ./usr/home ./hw ./jpg ./mail ./maps ./mecc ./monorail ./ms
	./phone ./robot ./scanjet ./ski ./src/bsd/fixes/FreeBSD/ports/jhs
	./src/bsd/fixes/FreeBSD/src/gen/share/mk/old
	./src/bsd/fixes/FreeBSD/src/jhs ./src/bsd/fixes/NetBSD
	./src/bsd/fixes/OpenBSD ./src/bsd/jhs/bin/local ./src/bsd/symmetric
	./src/fortran ./src/mips ./src/odds ./stacey ./stadtmuenchen
	./std ./symmetric ./systems ./test ./tmp ./vcfe ./vsl )
to_cd:	# JJLATER No hook in Makefile
	. -> localhost
	except ( ${NOCD} ) ;
	except_pat \*\\.lmth ;
	install -R /pri/FreeBSD/to_cd/usr/home/jhs/public_html ;
#	# harries/	He was happy to have his stuff on the CD.
#	# dots/ excluding all is overkill, but otherwise too many leak through.

NOLAPN = ( CFBSD berklix bim txt/browse.html txt/browse\.lmth bsdpie consultants
	./contact ./cv ./deter ./engine ./estic ./faraday ./fax
	./flights ./fraud ./free ./freebsd.org ./freebsd ./ftp ./fun
	./gea ./gifs ./hardware ./harries ./holz ./idacas ./ixus
	./jpg ./mail ./maps ./mecc ./mobile ./monorail ./ms ./phone
	./post ./puzzle ./rates ./robot ./sale ./scanjet
	./ski ./sms ./stadtmuenchen ./standards ./starnberg ./std
	./symmetric ./systems ./techtalk ./test ./txt ./vcfe )
2lapn:	# JJLATER No hook in Makefile
	. -> lapn
	except ( ${NOLAPN} ) ;
	install -R /usr/home/jhs/public_html.cp ;

# On fire=6.1, this needs no password:
#	cd ~/pu*l/.. && 44bsd-rdist -f pu*l/Distfile local
# whereas this does need a password
#	cd ~/pu*l/.. && rdist -f pu*l/Distfile local
