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
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
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.
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