Skip to content

Commit

Permalink
minor fixes for comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sighook committed Oct 12, 2024
1 parent 44275b1 commit ec0661a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 21 deletions.
15 changes: 7 additions & 8 deletions finddeps-linked
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ fatal() {
# Exit hooks. #
######################################################################

# Don't warn about unreachable commands in these functions, see
# trap(1p).
# Don't warn about unreachable commands in these functions, see trap(1p).

# shellcheck disable=2317
interrupted() {
Expand Down Expand Up @@ -82,19 +81,19 @@ finddeps() {
TMPFILE1=$(mktemp) || exit 126
TMPFILE2=$(mktemp) || exit 126

# linked dependencies
# Linked dependencies.
list_pkgfiles "$1" | grep_execfiles | grep_lddlibs > "$TMPFILE1"

# resolve symlinks and save only unique paths
# Resolve symlinks and save only unique paths.
xargs -a "$TMPFILE1" -I{} -r -P "${JOBS:-1}" readlink -f "{}" |
sort | uniq > "$TMPFILE2"

# search each path for owner
# Search each path for owner.
xargs -a "$TMPFILE2" -I{} -r -P "${JOBS:-1}" pkginfo -o "{}" |
awk '!/^(Package|pkginfo: no owner)/{print $1}' |
sort | uniq

# additional deps that can't be found by ldd(8)
# Additional deps that can't be found by ldd(8).
pkginfo -l "$1" | while read -r line; do
case $line in
usr/share/gir-1.0/*.gir) echo "gobject-introspection" ;;
Expand Down Expand Up @@ -158,8 +157,8 @@ main() {

######################################################################

# -e: Exit if command return status greater than 0
# -f: Disable globbing *?[]
# -e: Exit if command return status greater than 0.
# -f: Disable globbing *?[].
set -ef

# Set exit hooks.
Expand Down
9 changes: 4 additions & 5 deletions finddisowned
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ error() {
# Exit hooks. #
######################################################################

# Don't warn about unreachable commands in these functions, see
# trap(1p).
# Don't warn about unreachable commands in these functions, see trap(1p).

# shellcheck disable=2317
interrupted() {
Expand Down Expand Up @@ -54,7 +53,7 @@ finddisowned() {
info "Get search paths from configuration file"
#_paths=$(xargs < "$(readlink -f "$CONF")")
while read -r _path; do
# skip comments and empty lines
# Skip comments and empty lines.
case $_path in \#* | "" ) continue ;; esac

_paths="$_paths $_path"
Expand Down Expand Up @@ -132,8 +131,8 @@ main() {

######################################################################

# -e: Exit if command return status greater than 0
# -f: Disable globbing *?[]
# -e: Exit if command return status greater than 0.
# -f: Disable globbing *?[].
set -ef

# Set exit hooks.
Expand Down
4 changes: 2 additions & 2 deletions findredundantdeps
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ main() {

######################################################################

# -e: Exit if command return status greater than 0
# -f: Disable globbing *?[]
# -e: Exit if command return status greater than 0.
# -f: Disable globbing *?[].
set -ef

# Globals.
Expand Down
7 changes: 3 additions & 4 deletions pkgdiff
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ fatal() {
# Exit hooks. #
######################################################################

# Don't warn about unreachable commands in these functions,
# see trap(1p).
# Don't warn about unreachable commands in these functions, see trap(1p).

# shellcheck disable=2317
atexit() {
Expand Down Expand Up @@ -122,8 +121,8 @@ main() {

######################################################################

# -e: Exit if command return status greater than 0
# -f: Disable globbing *?[]
# -e: Exit if command return status greater than 0.
# -f: Disable globbing *?[].
set -ef

# Set exit hooks.
Expand Down
4 changes: 2 additions & 2 deletions pkglint
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ main() {

######################################################################

# -e: Exit if command return status greater than 0
# -f: Disable globbing *?[]
# -e: Exit if command return status greater than 0.
# -f: Disable globbing *?[].
set -ef

# Globals.
Expand Down

0 comments on commit ec0661a

Please sign in to comment.