aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-11 19:46:06 +0000
committerrsc <devnull@localhost>2005-01-11 19:46:06 +0000
commit4de03b544c82f36e172d7fc395276c12ecda5b7c (patch)
tree545a5c4b3baa5929fc7f597a33372f090ce69641 /src
parentf6bc91491578a01364d319f792713a1679676e2e (diff)
downloadplan9port-4de03b544c82f36e172d7fc395276c12ecda5b7c.tar.gz
plan9port-4de03b544c82f36e172d7fc395276c12ecda5b7c.tar.bz2
plan9port-4de03b544c82f36e172d7fc395276c12ecda5b7c.zip
add $plan9 variable
Diffstat (limited to 'src')
-rw-r--r--src/cmd/plumb/rules.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd/plumb/rules.c b/src/cmd/plumb/rules.c
index ab27787d..be675329 100644
--- a/src/cmd/plumb/rules.c
+++ b/src/cmd/plumb/rules.c
@@ -531,6 +531,11 @@ readruleset(void)
Ruleset *rs;
Rule *r;
int eof, inrule, i, ncmd;
+ char *plan9root;
+
+ plan9root = get9root();
+ if(plan9root)
+ setvariable("plan9", 5, plan9root, plan9root);
Again:
eof = 0;