Re: No fortune with cmake and file globbing

2014-10-21 Thread Kornel Benko
Am Dienstag, 21. Oktober 2014 um 14:54:56, schrieb Stephan Witt > Am 21.10.2014 um 14:42 schrieb Kornel Benko : > > > Am Dienstag, 21. Oktober 2014 um 14:17:01, schrieb Stephan Witt > > > >> I've noticed some "interesting" effect. > >> > >> There are some files different from others. E.g. the

Re: No fortune with cmake and file globbing

2014-10-21 Thread Stephan Witt
Am 21.10.2014 um 14:42 schrieb Kornel Benko : > Am Dienstag, 21. Oktober 2014 um 14:17:01, schrieb Stephan Witt > >> I've noticed some "interesting" effect. >> >> There are some files different from others. E.g. the implementation of the >> GuiPainter class: >> >> $ ls -l@ lyx/src/frontends/q

Re: No fortune with cmake and file globbing

2014-10-21 Thread Kornel Benko
Am Dienstag, 21. Oktober 2014 um 14:42:25, schrieb Kornel Benko > Am Dienstag, 21. Oktober 2014 um 14:17:01, schrieb Stephan Witt > > > I've noticed some "interesting" effect. > > > > There are some files different from others. E.g. the implementation of the > > GuiPainter class: > > > > $ ls

Re: No fortune with cmake and file globbing

2014-10-21 Thread Kornel Benko
Am Dienstag, 21. Oktober 2014 um 14:17:01, schrieb Stephan Witt > I've noticed some "interesting" effect. > > There are some files different from others. E.g. the implementation of the > GuiPainter class: > > $ ls -l@ lyx/src/frontends/qt4/GuiPainter.* > -rw-r--r--@ 1 stephan staff 17459 20

No fortune with cmake and file globbing

2014-10-21 Thread Stephan Witt
I've noticed some "interesting" effect. There are some files different from others. E.g. the implementation of the GuiPainter class: $ ls -l@ lyx/src/frontends/qt4/GuiPainter.* -rw-r--r--@ 1 stephan staff 17459 20 Okt 12:29 lyx/src/frontends/qt4/GuiPainter.cpp com.apple.TextEncoding

Re: [PATCH 14x] move support/globbing.[Ch] to frontends/xforms

2005-04-25 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Following JMarc's suggestion. Patch already committed. Thanks. JMarc

[PATCH 14x] move support/globbing.[Ch] to frontends/xforms

2005-04-25 Thread Angus Leeming
1.980 ChangeLog --- src/frontends/xforms/ChangeLog 8 Apr 2005 15:11:46 - 1.980 +++ src/frontends/xforms/ChangeLog 25 Apr 2005 11:04:49 - @@ -1,3 +1,9 @@ +2005-04-25 Angus Leeming <[EMAIL PROTECTED]> + + * globbing.[Ch]: moved here from the support directory. + + * Makefile.am: associ

Re: [PATCH] globbing

2004-12-07 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > Angus> The shell rule is that there is no globbing of the first > Angus> argument in the command. In other words, yes, globbing will be > Angus> triggered (unless the '*' is quoted). An unsuccessful glob will > Angus> return the pat

Re: [PATCH] globbing

2004-12-07 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > > | Lars Gullik Bjønnes wrote: >> >>> | +vector matches; >>> | +std::transform(fs_matches.begin(), fs_matches.end(), >>> | +   std::back_inserter(matches), >>> | + >>> | std::mem_fun_ref(&

Re: [PATCH] globbing

2004-12-07 Thread Jean-Marc Lasgouttes
>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: >> Does this mean that if someone uses * in a file name, it will >> trigger globbing? Angus> The shell rule is that there is no globbing of the first Angus> argument in the command. In ot

Re: [PATCH] globbing

2004-12-07 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: > >> | +vector matches; >> | +std::transform(fs_matches.begin(), fs_matches.end(), >> | +   std::back_inserter(matches), >> | +   >> | std::mem_fun_ref(&fs::path::native_f

Re: [PATCH] globbing

2004-12-07 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > | +vector matches; > | +std::transform(fs_matches.begin(), fs_matches.end(), > | +   std::back_inserter(matches), > | +   > | std::mem_fun_ref(&fs::path::native_file_string)); > > transforma_iterator > > vector

Re: [PATCH] globbing

2004-12-07 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Index: src/frontends/xforms/FormFiledialog.C | === | RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/FormFiledialog.C,v | retrieving revision 1.59 | diff -u -p -r1.59 FormFi

Re: [PATCH] globbing

2004-12-07 Thread Angus Leeming
plaforms. Admittedly, a small plus. > > Do we really want this? I don't know. I'm asking. > Does this mean that if someone uses * in a file name, > it will trigger globbing? The shell rule is that there is no globbing of the first argument in the command. In other words, y

Re: [PATCH] globbing

2004-12-07 Thread Jean-Marc Lasgouttes
platforms (as now) and on Angus> Windows plaforms. Admittedly, a small plus. Do we really want this? Does this mean that if someone uses * in a file name, it will trigger globbing? Angus> The right place for this is Boost. I've started the process, Angus> but it will undoubtedly tak

Re: [PATCH] globbing

2004-12-07 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: >> "Angus" == Angus Leeming <[EMAIL PROTECTED]> >> writes: > > Angus> The attached patch replaces our wrapper for the system glob > Angus> function with a new glob function built on top of Boost.Regex > Angus> and Boost.Filesystem. THis new function will work o

Re: [PATCH] globbing

2004-12-07 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> The attached patch replaces our wrapper for the system glob Angus> function with a new glob function built on top of Boost.Regex Angus> and Boost.Filesystem. THis new function will work on both Unix Angus> and Windows machines. Ang

[PATCH] globbing

2004-12-07 Thread Angus Leeming
The attached patch replaces our wrapper for the system glob function with a new glob function built on top of Boost.Regex and Boost.Filesystem. THis new function will work on both Unix and Windows machines. It will eventually enable us to expand globs in the 'command line-like' strings used to def

Re: globbing

2004-01-08 Thread Alfredo Braunstein
On Thursday 08 January 2004 11:44, Angus Leeming wrote: > For example "TeX documents (*.tex);;LyX Documents (*.lyx)" will be > parsed to fill a vector of size 2, each element having filled > description() and globs() fields, whilst "*.{p[bgp]m} *.pdf" results > in a vector of size 1 in which the d

Re: globbing

2004-01-08 Thread Angus Leeming
Alfredo Braunstein wrote: > on lyx-xforms, File->Open gives me a mask of "*.lyx| LyX Documents > (*.lyx)" that filters out all .lyx files. > If I change it to "*.lyx | LyX Documents (*.lyx)" or "*.lyx" all > goes well. The attached patch solves this problem 'properly'. It defines a new class File

Re: globbing

2004-01-07 Thread Angus Leeming
ies LyX Documents (*.lyx) Pdf Documents (*.pdf) and to filter the files on view based on the globbing pattern of whichever entry was selected (*.lyx or *.pdf). I think that we should support Qt's native syntax fully, but that will require us to write a parser for this syn

globbing

2004-01-07 Thread Alfredo Braunstein
on lyx-xforms, File->Open gives me a mask of "*.lyx| LyX Documents (*.lyx)" that filters out all .lyx files. If I change it to "*.lyx | LyX Documents (*.lyx)" or "*.lyx" all goes well. Alfredo

Re: [PATCH]: globbing support

2004-01-05 Thread Jean-Marc Lasgouttes
>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Attached are the changes I've made to enable us to define the Angus> FileFilter in external_templates as a conformant globbing Angus> pattern and for this to be useful in both th

[PATCH]: globbing support

2004-01-05 Thread Angus Leeming
Attached are the changes I've made to enable us to define the FileFilter in external_templates as a conformant globbing pattern and for this to be useful in both the Qt and xforms frontends. -- Angus glob.diff.gz Description: GNU Zip compressed data

Globbing

2004-01-01 Thread Angus Leeming
Two utility functions: /** A wrapper for the Posix function 'glob'. * \param pattern the glob to be expanded. Eg "*.[Ch]". * \param flags flags to be passed to the system function. * See 'man glob'. * \returns a vector of the files found to match \c pattern. */ std::vector const glob(std