action: implement exec() test option

Exec() adds the ability to run a command, with the
result of the test being the exit status of the command;
if the command returns a valid exit status (0), exec() returns
TRUE, otherwise on a bad exit status exec() returns FALSE.

Three environment variables hold:

	- NAME: name of file
	- PATHNAME: pathname of file relative to squashfs root
	- SOURCE_PATHNAME: the pathname of the file in the source
			   directory

Currently only a single argument (without spaces) can be entered
as a command, this is because the actions parser currently lacks the
ability to have arguments with spaces in them (either argument quoted
with '"', or spaces blackslashed with '\')!

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
1 file changed
tree: 67cdcc1a5a174f5427a32bacbd36fc98f8994efb
  1. kernel/
  2. kernel-2.4/
  3. squashfs-tools/
  4. README