quick_gen_project.sh

7 views
Skip to first unread message

Georges

unread,
Oct 29, 2009, 9:14:41 AM10/29/09
to exVim
Hi,

I'm using exVim on cygwin. I noticed an error in the script:
toolkit/quickgen/bash/quick_gen_project.sh

at least on my configuration, here is it:
line 229 (and similar in the else clause):
find ${force_posix_regex_1} . -maxdepth 1 ${force_posix_regex_2} -
regex ".*\.('"${file_filter}"')" > "./${vimfiles_path}/
_filenamelist_cwd"

should not have the single quotes around ${file_filter}, so should
rather be:
find ${force_posix_regex_1} . -maxdepth 1 ${force_posix_regex_2} -
regex ".*\.("${file_filter}")" > "./${vimfiles_path}/
_filenamelist_cwd"

Otherwise it seems to be ignoring the first filter, for instance
suppose
file_filter=c|h|C

you get the following command:
find . -maxdepth 1 -regextype posix-extended -regex ".*\.('"$
{file_filter}"')" > etc...
which will expand to:
find . -maxdepth 1 -regextype posix-extended -regex ".*\.('c|h|C')" >
etc...

and this will actually look for pattern ending with .'c or .h or .'C
(notice the single quote before c and C) so only .h will match. But
what we really need is:
find . -maxdepth 1 -regextype posix-extended -regex ".*\.("$
{file_filter}")" > etc...
which will expand to:
find . -maxdepth 1 -regextype posix-extended -regex ".*\.(c|h|C)" >
etc...

and will look for files ending with .c or .h or .C which is what we
want.

Could you please have a look at this?

Wu Jie

unread,
Nov 1, 2009, 9:14:47 PM11/1/09
to exVim
Hi,
Sorry for late reply, I'm been very busy these days.
I just read the code, and looks like you're right. I will test these
cases and give you a result.

Wu Jie

unread,
Nov 2, 2009, 7:56:56 AM11/2/09
to exVim
Oh thank you very much! I must say this really help me. I locate the
problem and fix it like what you mentioned.
You need to remove Single Quotes in all three file_filter in the file
to fully fix the problem.
Check r467 in Source for this fix.

It will be add in the 8.03. But I think the 8.03 may take a long time
to publish (probably at the end of the year), since I been very very
busy these days.
Please wait for this brand new version that will ease the installation
in Linux. And may be less bug, too.

Another thing I'm going to do is make exVim working in Mac-OS, since
I'm developing some iPhone project, and I would like to make it work
in Mac, too.

Anyway, any problem, let me know, I will try to pay some time on this
even I'm busy.

Have fun!
Reply all
Reply to author
Forward
0 new messages