Lots of juicy updates
authorSteve Youngs <steve@steveyoungs.com>
Mon, 25 Jan 2021 07:16:02 +0000 (17:16 +1000)
committerSteve Youngs <steve@steveyoungs.com>
Mon, 25 Jan 2021 07:16:02 +0000 (17:16 +1000)
commit90e4e654d43557289ae64ce22308725bdfc1df4d
tree864b06615bcaa290be5940761ee60b2ef3ebfea2
parente7c12bb129bf1daaab26dbce4fd7dc76ea793553
Lots of juicy updates

Updated the various scripts to deal with /usr/lib/deprecated in a
better way (I hope).  Deprecated libs are given special mention at the
bottom of a package's .project.

Re-wrote lesspipe.sh so that now it doesn't rely on filenames to
decide how to process a file.

vtar(), xtar() are now shell aliases in zsh-pkgtools.

* usr/lib/pkgusr/uninstall_package (dry_run,run): Deal with stuff
that might be in /usr/lib/deprecated

* etc/pkgusr/zsh/zsh-pkgtools (vtar,xtar): Replace with shell
aliases.

* usr/lib/pkgusr/update-pkg-project (upd_pkg_deps): Guard against
xargs getting no input.
(list_deprecated): New.

* usr/bin/list_suspicious_files (prune_prefixes): Update the
bastard copy, adding /usr/lib/deprecated, and sorting the list.

* usr/bin/lesspipe.sh: Complete re-write, eliminating the use of
filenames to determine how to process a file.

* usr/bin/grep_all_regular_files_for (prune_prefixes): Update the
bastard copy, adding /usr/lib/deprecated, and sorting the list.
If running as root, set prune_prefixes to something minimal.

* usr/bin/forall_direntries_from (prune_prefixes): Update the
bastard copy, adding /usr/lib/deprecated, and sorting the list
because I'm anal like that.

Signed-off-by: Steve Youngs <steve@steveyoungs.com>
etc/pkgusr/bash_profile
etc/pkgusr/zsh/zsh-pkgtools
usr/bin/forall_direntries_from
usr/bin/grep_all_regular_files_for
usr/bin/lesspipe.sh
usr/bin/list_suspicious_files
usr/lib/pkgusr/uninstall_package
usr/lib/pkgusr/update-pkg-project