Exclude compiled and exclude optional exclude list.

This commit is contained in:
2026-08-03 11:25:51 +02:00
parent 8d91aa86d2
commit a37af10e26
5 changed files with 173 additions and 26 deletions
+18 -3
View File
@@ -17,12 +17,27 @@ For a directory named `racket-upnp` with version `"5.0"`, it creates:
The ZIP recursively contains the package files, except for:
- `.git`
- `compiled`
- names ending in `~`
- names ending in `.bak`
- `.html`, `.js`, and `.css` files below `scribblings` or `scribbles`
- `.html`, `.js`, and `.css` files below `scribblings`, `scribbles`, or `scrbl`
The comparisons for `.bak` and the Scribble web extensions are
case-insensitive.
The built-in directory and extension comparisons are case-insensitive.
Additional exclusions can be supplied with `#:exclude`:
```racket
(zip-package
#:exclude
(list "tmp"
(string->path "examples/generated")
#rx"^tests/data/"))
```
An exclusion string matches a file or directory name anywhere in the relative
path. A path value matches that relative path and everything below it. A regular
expression is matched against the complete relative path, using `/` as the path
separator. Custom string and path comparisons are case-sensitive.
Install this source directory as a linked package during development: