{ "name": "rmlint", "version": "2.10.3", "summary": "rmlint: finds duplicate files, empty files and folders and broken links fast, and writes a script that removes them", "category": "tool", "license": "GPL-3.0-or-later", "homepage": "https://github.com/sahib/rmlint", "source": { "url": "https://github.com/sahib/rmlint/archive/refs/tags/v2.10.3.tar.gz", "sha256": "8ffdbd5d09d15c8717ae55497e90d6fa46f085b45ac1056f2727076da180c33e" }, "watch": {"kind": "github-tag", "repo": "sahib/rmlint"}, "deps": [ "glib", "json-glib" ], "env_packages": [ "scons" ], "static": true, "nss": true, "check": "t=$(mktemp -d) && trap 'rm -rf \"$t\"' EXIT && mkdir -p \"$t/tree/a\" \"$t/tree/b\" \"$t/tree/empty\" && head -c 200000 /dev/urandom > \"$t/tree/a/photo.raw\" && cp \"$t/tree/a/photo.raw\" \"$t/tree/b/photo.raw.bak\" && printf 'only once' > \"$t/tree/a/unique.txt\" && : > \"$t/tree/b/zero.txt\" && bin/rmlint --version 2>&1 | first && bin/rmlint -o sh:\"$t/rmlint.sh\" -o json:\"$t/rmlint.json\" -S a \"$t/tree\" > /dev/null && has -c 'duplicate_file' < \"$t/rmlint.json\" && has -e 'photo.raw.bak' < \"$t/rmlint.sh\" && bin/rmlint --replay \"$t/rmlint.json\" \"$t/tree\" -o summary:stdout 2>&1 | has -i 'duplicate' && sh \"$t/rmlint.sh\" -d -x > /dev/null && [ -f \"$t/tree/a/photo.raw\" ] && [ ! -e \"$t/tree/b/photo.raw.bak\" ] && [ -f \"$t/tree/a/unique.txt\" ] && [ ! -e \"$t/tree/b/zero.txt\" ] && echo 'rmlint 2.10.3: a duplicate and an empty file found, its script kept the original and removed the copy; the JSON read back by --replay (json-glib)'" }