Commit 78252429 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack: add support for --verbose and --nodeps

parent 3548d5ba
#!/bin/sh #!/bin/sh
# kind of hack: inheritance --force from main epm
echo "$EPM_OPTIONS" | grep -q -- "--nodeps" && nodeps="--nodeps"
echo "$EPM_OPTIONS" | grep -q -- "--verbose" && verbose="--verbose"
fatal() fatal()
{ {
echo "FATAL: $*" >&2 echo "FATAL: $*" >&2
...@@ -385,18 +389,22 @@ get_libs_requires() ...@@ -385,18 +389,22 @@ get_libs_requires()
local fdir="$BUILDROOT/$1" local fdir="$BUILDROOT/$1"
__get_binary_requires "$fdir" | LANG=C sort -u >$libreqlist __get_binary_requires "$fdir" | LANG=C sort -u >$libreqlist
info " List of binary and libs requires:" if [ -n "$verbose" ] ; then
info "$(cat $libreqlist | xargs -n1000)" info " List of binary and libs requires:"
info " End of the list binary and libs requires." info "$(cat $libreqlist | xargs -n1000)"
info " End of the list binary and libs requires."
fi
__get_library_provides "$fdir" | LANG=C sort -u >$libpreslist __get_library_provides "$fdir" | LANG=C sort -u >$libpreslist
info " List of libraries provided:" if [ -n "$verbose" ] ; then
info "$(cat $libpreslist | xargs -n1000)" info " List of libraries provided:"
info " End of the provided libraries list." info "$(cat $libpreslist | xargs -n1000)"
info " End of the provided libraries list."
info " List of ignored libraries:"
info "$EEPM_IGNORE_LIB_REQUIRES" info " List of ignored libraries:"
info " End of the ignored libraries." info "$EEPM_IGNORE_LIB_REQUIRES"
info " End of the ignored libraries."
fi
# print out result # print out result
LANG=C join -v2 $libpreslist $libreqlist LANG=C join -v2 $libpreslist $libreqlist
...@@ -406,6 +414,7 @@ get_libs_requires() ...@@ -406,6 +414,7 @@ get_libs_requires()
add_libs_requires() add_libs_requires()
{ {
local ll local ll
[ -n "$nodeps" ] && info "Skipping any requires detection ..." && return
info "Scanning for required libs soname ..." info "Scanning for required libs soname ..."
get_libs_requires | xargs -n6 echo | grep -ve '^$' | while read ll ; do get_libs_requires | xargs -n6 echo | grep -ve '^$' | while read ll ; do
info "Requires: $ll" info "Requires: $ll"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment