mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
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:
parent
3d4ecbc508
commit
8e7ceb6444
1 changed files with 9 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue