jw-pkg: Support command list-changed-files

list-changed-files does the obvious: List all files locally diverging from its
packaged version.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2025-07-05 13:44:59 +00:00
commit 8e7ceb6444

View file

@ -52,6 +52,9 @@ cat << EOT
for others
build-date: show installed janware packages along with build date
built-today: show installed janware packages built today
list-changed-files: list files changed since installation
list-templates: list templates
list-template-tables: list templates tables
list-template-output: list template output files
@ -402,6 +405,11 @@ cmd_built_today()
cmd_build_date | grep $today | cut -d' ' -f3
}
cmd_list_changed_files()
{
list_projects "$@" | xargs rpm -qV | grep '^..5' | sed 's|[^/]*/|/|'
}
# ----- here we go
cmdline="$0 $@"
@ -478,7 +486,7 @@ list)
list_projects)
list_projects "$@"
;;
compile_templates|list_templates|list_template_tables|list_template_output|rm_template_output|diff|build_date|built_today|rpmnew|get_value_from_tables)
compile_templates|list_templates|list_template_tables|list_template_output|rm_template_output|diff|build_date|built_today|rpmnew|get_value_from_tables|list_changed_files)
cmd_$cmd "$@"
;;
help)