Plan 9 from Bell Labs’s /usr/web/sources/contrib/lejatorn/btfs/mkfile

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


</$objtype/mkfile

OFILES=\
	misc.$O			\
	torrent.$O		\
	torrentfile.$O	\
	comm.$O 		\
	fs.$O	 		\
	main.$O		

default:V:
	mk tidy
	mk btfs

%.$O:	%.c 
		$CC $CFLAGS $stem.c

btfs:	$OFILES
		$LD $LDFLAGS -o btfs $OFILES

clean:V:
	rm -rf ../torrents/*
	rm *.$O
	rm btfs

tidy:V:
	broke | rc
	kill btfs | rc

ps:	btfs.ms
	troff -ms -o1-3 btfs.ms | lp -dstdout > /tmp/btfs.ps

pdf:	/tmp/btfs.ps
		cat /sys/doc/docfonts /tmp/btfs.ps > /tmp/_btfs.ps
		ps2pdf /tmp/_btfs.ps /tmp/btfs.pdf
		
todo:V:
	echo 'some sort of deadlock with 3 peers'

peers:V:
	dircp /usr/glenda/seeder/ /usr/glenda/leecher1/
	cd /usr/glenda/leecher1/; rm -rf kryptonite.flv portal/
	dircp /usr/glenda/seeder/ /usr/glenda/leecher2/
	cd /usr/glenda/leecher2/; rm -rf funky portal/
	dircp /usr/glenda/seeder/ /usr/glenda/leecher3/
	cd /usr/glenda/leecher3/; rm -rf funky kryptonite.flv

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].