[CWB] [PATCH] cwb-encode checking registry directory

Alberto Simões ambs at di.uminho.pt
Tue Feb 9 21:52:53 CET 2010


Heyas

On 09/02/2010 19:12, Stefan Evert wrote:
> It would be good for cwb-encode to abort with an error message if the
> filename specified with -R isn't all lowercase (except for the directory
> part, of course); preferably before starting to encode the entire
> corpus.  Patches are highly welcome. :-)

This patch includes:

 - moved the code that checks corpus directory earlier (where I added it
was too late on some cases)

 - added code to check if the registry directory (the last portion, that
is) just includes lowercase letters, digits or underscores (let me know
to enlarge this set)

 - added code to check if the registry directory was supplied (if not,
complain and abort)

 - added code to check if the registry directory exists (if not,
complain and abort)

Cheers
Alberto

-- 
Alberto Simões
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cwb-encode.diff.gz
Type: application/x-gzip
Size: 1179 bytes
Desc: not available
Url : http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20100209/69e23202/cwb-encode.diff.bin


More information about the CWB mailing list