From 8e7ceb6444e19c19c9911637364dae41744e4a21 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sat, 5 Jul 2025 13:44:59 +0000 Subject: [PATCH] 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 --- scripts/jw-pkg | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/jw-pkg b/scripts/jw-pkg index 2ba2f87b..dfe51c91 100644 --- a/scripts/jw-pkg +++ b/scripts/jw-pkg @@ -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)