[gt-users] gt splitfasta -numfiles patch (was: New feature announcement)

Sascha Steinbiss steinbiss at zbh.uni-hamburg.de
Thu Jan 29 18:28:16 CET 2009


Brent Pedersen wrote:
> how do i work the pre_commit?

As far as I can see, it should suffice to copy the scripts/pre-commit 
file into your <genometools dir>/.git/hooks directory, as Gordon pointed 
out.

> $ lua scripts/src_check
> lua: scripts/src_check:25: unexpected symbol near `#'
> $ lua -v
> Lua 5.0.3  Copyright (C) 1994-2006 Tecgraf, PUC-Rio

Usually the script should be executable by itself if a Lua interpreter 
is installed:

$ scripts/src_check
Usage: scripts/src_check file [...]
Check C sources for accordance with coding standards.
$ lua -v
Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio

Unfortunately I do not have access to this Lua version. The problem 
seems to be the "#arg" expression in l. 25 which refers to the number of 
elements in the argument array. Has the '#' operator been added only 
recently to the Lua language? I am puzzled... Can you try it again with 
a newer interpreter version? Or try replacing '#arg' with the more basic 
'table.getn(arg)' which should also return the size of the array.

If this works, give the file(s) to be checked for coding standards as 
arguments to the script.

Sascha

-- 
Sascha Steinbiss
Center for Bioinformatics
University of Hamburg
Bundesstr. 43
20146 Hamburg
Germany

Email:  steinbiss at zbh.uni-hamburg.de
URL:    http://www.zbh.uni-hamburg.de/steinbiss
Phone:  +49 (40) 42838 7322
FAX:    +49 (40) 42838 7312



More information about the gt-users mailing list