[CWB] [PATCH] cwb-encode checking registry directory
Alberto Simões
ambs at di.uminho.pt
Wed Feb 10 11:48:45 CET 2010
Heya
On 09/02/2010 23:30, Stefan Evert wrote:
>> - added code to check if the registry directory exists (if not,
>> complain and abort)
>
> That's a misunderstanding: -R specifies the full path (directory +
> filename) of the registry entry to be created, not just the registry
> directory. So registry_file must _not_ be a directory, and in normal
> usage it will often not exist. I've moved the test up to the filename
> validity check, where I temporarily shorten the string to the directory
> part only.
I should be sleeping yesterday night :)
Thanks
> I've removed this check, also for backward compatibility. Some users
> may have build systems that generate the registry entry beforehand and
> then run cwb-encode without -R. This certainly makes sense if you want
> to add information that cwb-encode doesn't generate, such as charset
> (until recently), alignment attributes, etc.
Understood.
Cheers
--
Alberto Simões
More information about the CWB
mailing list