9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Steve Simon" <steve@quintile.net>
To: 9fans@9fans.net
Subject: Re: [9fans] plumb rule for include files in different directories
Date: Tue, 11 Jun 2013 15:06:03 +0100	[thread overview]
Message-ID: <ad17c590a42d1ce2d10f06e98c35b4c2@quintile.net> (raw)
In-Reply-To: <CAOCRf5VmMtZiGQiUpC3yGGVVEa8mNUu7sw0inZJ2L61G7VOUMA@mail.gmail.com>

I do somthing similar, though my solution is rather crufty.

I connect linux box using ssh from plan9, I also have a sftpfs
session from plan9 mounted at /n/linux

I have my own script called make on a which runs /bin/make and
pipes the output through sed. sed rewrites the absolute paths
(I have to use cmake which always uses absolute paths) into
plan9 relative paths so they can be plumbed. e.g.

	/home/steve/work/xxx/yyy/fred.cpp
gets rewritten as
	/n/linux/home/steve/work/xxx/yyy/fred.cpp

I also use conswdir(1) and a cd function in rc (on linux) to ensure
my plan9 /dev/wdir is kept in sync with linux. This allows me to plumb files
in the current dir or dirs relative to it.

I warned you it was crufty.

-Steve



  reply	other threads:[~2013-06-11 14:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-11 12:38 Bence Fábián
2013-06-11 14:06 ` Steve Simon [this message]
2013-06-11 16:16 ` Richard Miller
2013-06-11 16:26   ` Bence Fábián

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ad17c590a42d1ce2d10f06e98c35b4c2@quintile.net \
    --to=steve@quintile.net \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).