~moody/rc-gemd

7fa8b48d8ee308ed95106f66d9376a79942c0080 — Jacob Moody 2 months ago 8b3ea55
provide some namespacing suggestions and mkfile
3 files changed, 17 insertions(+), 0 deletions(-)

A mkfile
M rc-gemd
M select-handler
A mkfile => mkfile +6 -0
@@ 0,0 1,6 @@
install:V:
	mkdir -p /rc/bin/rc-gemd/handlers
	cp rc-gemd /rc/bin/rc-gemd/
	cp select-handler /rc/bin/rc-gemd/
	dircp handlers /rc/bin/rc-gemd/handlers
	mkdir -p /rc/bin/rc-gemd/skel/^(bin env pages rc)

M rc-gemd => rc-gemd +1 -0
@@ 1,4 1,5 @@
#!/bin/rc
rfork E
rc_gemd_dir=/rc/bin/rc-gemd
path=(/bin $rc_gemd_dir/handlers)
cr=

M select-handler => select-handler +10 -0
@@ 1,5 1,15 @@
#!/bin/rc
rfork n
skel=$rc_gemd_dir^/skel
fs_root=/lib/gem

bind $fs_root $skel^/pages
bind /bin $skel^/bin
bind /rc $skel^/rc
bind -c '#e' $skel^/env
bind $skel /
fs_root=/pages

if(~ $location /)
	location=/index.gem