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

Brent Pedersen bpederse at gmail.com
Thu Jan 29 18:41:39 CET 2009


On Thu, Jan 29, 2009 at 9:28 AM, Sascha Steinbiss
<steinbiss at zbh.uni-hamburg.de> wrote:
> 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.


yeah, it works with 5.1.4.
i ran it and updated the code accordingly. as a pythonista,
i'm embarrassed that there were tabs in there. need to fix my .vimrc.

-b

>
> 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
>
> _______________________________________________
> gt-users mailing list
> gt-users at genometools.org
> http://genometools.org/mailman/listinfo/gt-users
>


More information about the gt-users mailing list