From: Sam Watkins <sam@nipl.net>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] inferno from hg does not build out of the box
Date: Sun, 4 Oct 2009 01:12:27 +1000 [thread overview]
Message-ID: <20091003151227.GB6003@nipl.net> (raw)
In-Reply-To: <b74c496736df60d36cbb7bb94c3d13f6@terzarima.net>
Let's fix this now. Here is a one-line fix, which is simpler and cleaner than
a multi-empty-file commit. My old fix mkdir -p `<lib/emptydirs` is a bashism I
think, I've reworded it:
xargs mkdir -p <lib/emptydirs
That will suffice to fix the problem for unix users at least. xargs might not
be present, we can do it with only the shell; this might be best:
while read d; do mkdir -p $d; done <lib/emptydirs
Could you please add this fix to makemk.sh? I put it at the end of the
following stanza which seems appropriate (patch below).
# make sure we start off clean
echo removing old libraries and binaries
rm -f $PLAT/lib/*.a $PLAT/bin/*
rm -f utils/cc/y.tab.?
while read d; do mkdir -p $d; done <lib/emptydirs
A general fix for hg/git/etc would be to keep a list of all directories in the
RCS as a file .hg-dirs or .hg/dirs (but forbidden), and a post-update to
create/remove them as needed.
Is it best to talk about inferno on 9fans or should I use/Cc inferno-list?
thanks,
Sam
--- makemk.sh.orig 2009-10-04 00:55:37.000000000 +1000
+++ makemk.sh 2009-10-04 00:56:10.000000000 +1000
@@ -42,6 +42,7 @@
echo removing old libraries and binaries
rm -f $PLAT/lib/*.a $PLAT/bin/*
rm -f utils/cc/y.tab.?
+while read d; do mkdir -p $d; done <lib/emptydirs
# libregexp
cd $ROOT/utils/libregexp || error cannot find libregexp directory
prev parent reply other threads:[~2009-10-03 15:12 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-30 4:27 [9fans] corrections to /sys/src/cmd/8l/l.h lucio
2009-10-01 10:22 ` sqweek
2009-10-01 13:23 ` [9fans] kencc, inferno hg, v9fs is big?, porting Sam Watkins
2009-10-01 13:48 ` Abhishek Kulkarni
2009-10-01 17:09 ` C H Forsyth
2009-10-01 16:59 ` Russ Cox
2009-10-02 1:27 ` jrm8005
2009-10-01 18:19 ` ron minnich
2009-10-01 18:23 ` David Leimbach
2009-10-01 18:25 ` David Leimbach
2009-10-01 18:26 ` Eric Van Hensbergen
2009-10-01 18:34 ` Vinu Rajashekhar
2009-10-02 4:52 ` [9fans] inferno from hg does not build out of the box Sam Watkins
2009-10-02 8:44 ` roger peppe
2009-10-02 10:44 ` C H Forsyth
2009-10-02 15:03 ` David Leimbach
2009-10-02 17:03 ` Tim Newsham
2009-10-02 18:31 ` Charles Forsyth
2009-10-02 18:39 ` Eric Van Hensbergen
2009-10-02 21:07 ` Charles Forsyth
2009-10-03 15:12 ` Sam Watkins [this message]
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=20091003151227.GB6003@nipl.net \
--to=sam@nipl.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).