tup
tup copied to clipboard
Wildcard (asterisk) does not include files in subdirectories
Problem:
I'm trying to create a rule for copying the contents of an entire directory. I.e.:
The following structure is given:
\
Tupfile
\src
\file1
\file2
\subdirectory
\file3
\file4
The following should be achieved.:
\
Tupfile
\src
\file1
\file2
\subdirectory
\file3
\file4
\built
\file1
\file2
\subdirectory
\file3
\file4
-
: foreach src/* |> cp -u -r %f %o |> build/%bdoes not copy files fromsubdirectory. -
: src/root |> cp -u -r src/root build |> buildcreated the following error:
tup error: Directory '[..]/build/subdirectory' was created, but not subsequently removed. Only temporary directories can be created by commands.
tup error: Directory ''[..]/build' was created, but not subsequently removed. Only temporary directories can be created by commands.
Expected
- The
*-wildcard should include all subdirectories
or - There should be a
**-wildcard, that would include all subdirectories
I'm voting for the ** solution. I've been missing it a few times