From: ori@eigenstate.org
To: 9fans@9fans.net
Subject: git9 on 9legacy
Date: Thu, 5 Dec 2019 21:35:03 -0800 [thread overview]
Message-ID: <F1A51E7B9393C16D5F351D7C34C9A95C@eigenstate.org> (raw)
I got a box running 9legacy running, and fixed the portability
issues in git9, since it didn't seem like anyone else was going
to do the work.
There are two patches needed which I put on sources:
- rc-line-split:
implement `delim{...} syntax for rc
- walk
port walk command to 9legacy.
Other than that, there were a couple of tweaks needed to
git9 itself: 9legacy has no '%z' format specifier, which
means that there's no way of printing pointer differences;
that's ok, they weren't really used for anything important.
And 9legacy awk is still an ape program, which means that
it uses /bin/sh. Some of the system calls that git9 was
doing from within awk used rc syntax. I pulled the code
up into awk, and made the commands shell agnostic.
So, to summarize:
# get dependencies
patch/apply rc-line-split
patch/apply walk
cd /sys/src
mk all
mk install
# get bootstrap version of git9
cd /tmp
hget http://github.com/oridb/git9/archive/master.tar.gz | tar xvz
cd git9-master
mk all
mk install
# now you can get stuff with git
git/clone git://github.com/oridb/git9
cd git9
mk install
next reply other threads:[~2019-12-06 5:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-06 5:35 ori [this message]
2019-12-06 7:27 ` [9fans] " Fazlul Shahriar
2019-12-06 7:46 ` ori
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=F1A51E7B9393C16D5F351D7C34C9A95C@eigenstate.org \
--to=ori@eigenstate.org \
--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).