HomePhabricator

[cmake] Ignore empty directories during source packaging

Description

[cmake] Ignore empty directories during source packaging

Summary:
The patterns from the .gitignore file are excluded from the source package, but directory exclusions (like output/) will leave an empty directory in the source package.
This diff fixes this by removing the directory as well.
Also add the distsrc directories to the ignored files so guix source package is clean.

Test Plan:
Run the guix build twice and check the source package hash is deterministic.
Open the source package archive and check it is as expected.

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Subscribers: PiRK

Differential Revision: https://reviews.bitcoinabc.org/D15641

Details

Provenance
FabienAuthored on Mar 5 2024, 15:38
FabienPushed on Mar 6 2024, 12:55
Reviewer
Restricted Project
Differential Revision
D15641: [cmake] Ignore empty directories during source packaging
Parents
rABC30657fdaf7aa: [token-server] Add new function to determine if a given tx involves an address…
Branches
Unknown
Tags
Unknown