gittup/tup

Wildcard (asterisk) does not include files in subdirectories

DarkTrick opened this issue · 1 comments

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/%b does not copy files from subdirectory.
  • : src/root |> cp -u -r src/root build |> build created 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