mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-21 21:57:38 +01:00
jw-pkg: Add command list-template-output
This should come in handy for removing generated files. Do some code-cleanup, too. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
adb18caa13
commit
0b8dc4bbfd
1 changed files with 19 additions and 25 deletions
|
|
@ -27,9 +27,11 @@ cat << EOT
|
||||||
checklog: update the installation log file if necessary
|
checklog: update the installation log file if necessary
|
||||||
rpmnew: remove superfluous rpmnew files and show conflicts
|
rpmnew: remove superfluous rpmnew files and show conflicts
|
||||||
for others
|
for others
|
||||||
build-date: show installed jannet packages along with build date
|
build-date: show installed janware packages along with build date
|
||||||
built-today: show installed jannet packages that were built today
|
built-today: show installed janware packages built today
|
||||||
list-templates: list templates
|
list-templates: list templates
|
||||||
|
list-template-tables: list templates tables
|
||||||
|
list-template-output: list template output files
|
||||||
compile-templates: compile templates
|
compile-templates: compile templates
|
||||||
|
|
||||||
global options are
|
global options are
|
||||||
|
|
@ -199,6 +201,16 @@ cmd_list_template_tables()
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cmd_list_template_output()
|
||||||
|
{
|
||||||
|
local re=`echo $template_exts | sed 's/\./\\\\./g; s/^ *//; s/ *$//; s/ */$\\\\|/g; s/\(.*\)/\\\\(\1$\\\\)/'`
|
||||||
|
local f
|
||||||
|
list_packages "$@" | xargs -r rpm -ql | sed "/$re/ !d; s/$re//" | while read f; do
|
||||||
|
[ -f "$f" -o -L "$f" ] || continue
|
||||||
|
echo $f
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
cmd_compile_templates()
|
cmd_compile_templates()
|
||||||
{
|
{
|
||||||
local ext_from="$template_exts" # TODO: support more than one
|
local ext_from="$template_exts" # TODO: support more than one
|
||||||
|
|
@ -293,7 +305,7 @@ esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
cmd="$1"
|
cmd="${1//-/_}"
|
||||||
shift
|
shift
|
||||||
|
|
||||||
case $cmd in
|
case $cmd in
|
||||||
|
|
@ -346,34 +358,16 @@ list)
|
||||||
list_packages "$@" | xargs -r rpm -q
|
list_packages "$@" | xargs -r rpm -q
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
list-projects)
|
list_projects)
|
||||||
list_projects "$@"
|
list_projects "$@"
|
||||||
;;
|
;;
|
||||||
cpp-glib)
|
cpp_glib)
|
||||||
sudo rpm -U --replacefiles --replacepkgs --oldpackage \
|
sudo rpm -U --replacefiles --replacepkgs --oldpackage \
|
||||||
ftp://dspadm@ftp.jannet.de/pub/packages/linux/suse/10.1/inst-source/rpm/i586/glib2-2.8.5-19.i586.rpm
|
ftp://dspadm@ftp.jannet.de/pub/packages/linux/suse/10.1/inst-source/rpm/i586/glib2-2.8.5-19.i586.rpm
|
||||||
check_ldconfig "$@"
|
check_ldconfig "$@"
|
||||||
;;
|
;;
|
||||||
rpmnew)
|
compile_templates|list_templates|list_template_tables|list_template_output|diff|build_date|built_today|rpmnew)
|
||||||
cmd_rpmnew "$@"
|
cmd_$cmd "$@"
|
||||||
;;
|
|
||||||
compile-templates)
|
|
||||||
cmd_compile_templates "$@"
|
|
||||||
;;
|
|
||||||
list-templates)
|
|
||||||
cmd_list_templates "$@"
|
|
||||||
;;
|
|
||||||
list-template-tables)
|
|
||||||
cmd_list_template_tables "$@"
|
|
||||||
;;
|
|
||||||
diff)
|
|
||||||
cmd_diff "$@"
|
|
||||||
;;
|
|
||||||
build-date)
|
|
||||||
cmd_build_date "$@"
|
|
||||||
;;
|
|
||||||
built-today)
|
|
||||||
cmd_built_today "$@"
|
|
||||||
;;
|
;;
|
||||||
help)
|
help)
|
||||||
usage 0
|
usage 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue