changelog shortlog tags branches changeset files revisions annotate raw help

Mercurial > hg > plan9front / rc/bin/rwd

changeset 7243: 34f64dcbbc25
parent: efddda59690a
author: cinap_lenrek@felloff.net
date: Fri, 17 May 2019 18:14:10 +0200
permissions: -rwxr-xr-x
description: 7l: don't hardcode 4k pagesize, use INITRND
1 #!/bin/rc
2 
3 rfork e
4 if(! ~ $#* 1){
5  echo 'usage: remotesys=xxx rwd dir' >[1=2]
6  exit usage
7 }
8 
9 suf=''
10 if(~ $#remotesys 1)
11  suf = @$remotesys
12 if not
13  remotesys=''
14 
15 echo -n $1 >/dev/wdir
16 b=`{basename $1}
17 if(! ~ $#b 1)
18  b=/
19 echo -n $b^$suf >/dev/label
20 if(test -f /dev/acme/ctl){
21  echo name $1/-$remotesys >/dev/acme/ctl
22  echo dumpdir $1 >/dev/acme/ctl
23 }