No description
Find a file
Dan Church 22a7b86113
CI: Replace shell script tests with TAP harness
During all this I uncovered a bug in how Archive::Tar handles sparse
files stored in tarballs; the library reports the file as having no
contents and a size of 0. As a result, in the freed-bytes-commas test,
the tarball extraction has been replaced by on-the-fly file creation.
2023-01-29 15:39:25 -06:00
Directory/Simplify Break out packages into separate files 2022-11-16 11:33:08 -06:00
t CI: Replace shell script tests with TAP harness 2023-01-29 15:39:25 -06:00
util Break out packages into separate files 2022-11-16 11:33:08 -06:00
.editorconfig CI: Replace shell script tests with TAP harness 2023-01-29 15:39:25 -06:00
.gitignore Break out packages into separate files 2022-11-16 11:33:08 -06:00
.gitlab-ci.yml CI: Replace shell script tests with TAP harness 2023-01-29 15:39:25 -06:00
CHANGELOG.md Add thousands separator commas to output 2022-09-13 11:50:10 -05:00
LICENSE-commons-clause.md Add LICENSE 2022-11-16 11:16:31 -06:00
LICENSE.md Add LICENSE 2022-11-16 11:16:31 -06:00
make-allinone.sh Break out packages into separate files 2022-11-16 11:33:08 -06:00
Makefile CI: Replace shell script tests with TAP harness 2023-01-29 15:39:25 -06:00
README.md Add README 2022-11-16 12:48:06 -06:00
simplify_static_dir-main.pl Break out packages into separate files 2022-11-16 11:33:08 -06:00

Static Dir Simplifier

Optimize directories for size by combining identical files using hard links.

Options

Usage: simplify_static_dir [OPTIONS] [DIR]...

Option Meaning
-f Print a sum of the number of freed bytes.
-m REGEX Only match file paths matching REGEX.
-M REGEX Exclude file paths matching REGEX.
-v Verbose output.
-z Include zero-length files in search. Normally they are ignored (you don't save diskspace by hard-linking empty files).
--help Output this help message and exit.
--version Output version information and exit.

By default, scans the current directory.

License

Copyright (C) 2010-2022 Dan Church.

License GPLv3: GNU GPL version 3.0 (https://www.gnu.org/licenses/gpl-3.0.html)

with Commons Clause 1.0 (https://commonsclause.com/).

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.

You may NOT use this software for commercial purposes.