BSD Ports

sysutils/hs-filepattern 0.1.3nb7 NetBSD

File path glob-like matching

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
modified-bsd
Categories
sysutils
Package size
243.6 KiB, 2477.2 KiB installed

Description

A library for matching files using patterns such as "src/**/*.png" for all .png files recursively under the src directory. Features:

* All matching is O(n). Most functions precompute some information given only one argument.

* See "System.FilePattern" and '?==' simple matching and semantics.

* Use 'match' and 'substitute' to extract suitable strings from the * and ** matches, and substitute them back into other patterns.

* Use 'step' and 'matchMany' to perform bulk matching of many patterns against many paths simultaneously.

* Use "System.FilePattern.Directory" to perform optimised directory traverals using patterns.

Install

Binary package:

pkgin install hs-filepattern

From pkgsrc:

cd /usr/pkgsrc/sysutils/hs-filepattern && make install clean

Dependencies

Run dependencies 2