Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wildcard (asterisk) does not include files in subdirectories #453

Open
DarkTrick opened this issue Feb 13, 2022 · 1 comment
Open

Wildcard (asterisk) does not include files in subdirectories #453

DarkTrick opened this issue Feb 13, 2022 · 1 comment

Comments

@DarkTrick
Copy link

DarkTrick commented Feb 13, 2022

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
@uohmak4fvpqe
Copy link

I'm voting for the ** solution. I've been missing it a few times

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants