Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Compiling I7 from the command line on Linux

19 views
Skip to first unread message

mtc06

unread,
Nov 14, 2009, 6:22:43 PM11/14/09
to
Hello!

I need to compile Inform 7 files from the command line. I'm running
Ubuntu and Inform version 5Z71.

What I've seen is that Inform 6 can be compiled using 'inform'. I've
also seen evidence that there are two commands - 'i7' and 'ni' - that
might be involved in compiling Inform 7, but neither work on my
computer. Is this not supported on Linux? Am I being silly and doing
it wrong?

Cheers,

Mike

John Roth

unread,
Nov 14, 2009, 8:00:56 PM11/14/09
to

There are a variety of command line I7 installs at Inform7.com/
download. Which one are you using, and what is the problem when you
try to install and compile?

John Roth

pascal

unread,
Nov 15, 2009, 6:38:50 AM11/15/09
to
Le Sat, 14 Nov 2009 15:22:43 -0800 (PST)
mtc06 <fina...@gmail.com> a écrit:

What errors do you get when launching i7 from the terminal ?
It works as expected on my system (Archlinux). From i7 "so-called interface"
you'll be able to create/open a project and compile/release it.

Adam Thornton

unread,
Nov 15, 2009, 12:03:24 PM11/15/09
to
In article <687ec116-ed71-4876...@y28g2000prd.googlegroups.com>,

John Roth <john...@gmail.com> wrote:
>On Nov 14, 4:22�pm, mtc06 <finals...@gmail.com> wrote:
>> Hello!
>>
>> I need to compile Inform 7 files from the command line. I'm running
>> Ubuntu and Inform version 5Z71.
>>
>> What I've seen is that Inform 6 can be compiled using 'inform'. I've
>> also seen evidence that there are two commands - 'i7' and 'ni' - that
>> might be involved in compiling Inform 7, but neither work on my
>> computer. Is this not supported on Linux? Am I being silly and doing
>> it wrong?
>There are a variety of command line I7 installs at Inform7.com/
>download. Which one are you using, and what is the problem when you
>try to install and compile?

i7 -c will do a noninteractive compilation. i7 -r will do a
noninteractive release.

i7 may or may not be in your $PATH. If you do the stock CLI install it
ends up in /usr/local/bin, but if you're running a version bundled with
Gnome Inform, or you overrode the default location, you might have put
it somewhere else.

You *could* manually poke at ni to do compiles as well--take a look
inside i7, which is just a perl script--to see how it's done, but I put
the -c and -r options in there precisely to facilitate noninteractive
use.

I need to fix the script to give better usage instructions when invoked,
but it's in the man page:

Noninteractive Invocation
i7 [-p prefix] [-s setting1=value1[,setting2=value2...]] -c story-directory
i7 [-p prefix] [-s setting1=value1[,setting2=value2...]] -r story-directory

If invoked with the -c or -r options, i7 will compile or release
your story noninteractively. If you installed Inform 7 somewhere
other than /usr/local/share/inform7, you can specify the
installation location with the -p option; if you want to set any
compilation settings, you can do so with the -s option.

Supported settings are "blorb" with options of "1" or "0" (that is,
do or do not release a blorb file as the released work), and
"zcode" with options of "5", "6", "8", and "256" or "g"
(meaning compile to z5, z6, z8, or Glulx).

It is hoped that noninteractive modes will be useful to authors of
Inform 7 IDEs. A return code of 0 means that the compile or
release succeeded; anything else signifies failure.

Adam

0 new messages