# These are handled via install-data-hook-bashcomp-* rules
# - runuser: symlinked to su completion
# - lastb: symlinked to last completion
-special_handling="runuser|lastb"
+special_handling="runuser|lastb"
# Certain completions have an unusual algorithm that is distinct from the pattern used
# in the majority of completion files, we skip these for now.
unusual_completions="pipesz"
-top_srcdir=${1:-.}
+top_srcdir="$(realpath -qLs "${1:-.}")"
[ -d "${top_srcdir}" ] || die "directory '${top_srcdir}' not found"
cd "${top_srcdir}" || die "cannot cd to ${top_srcdir}"
# This script verifies if each program has a corresponding manpage
# and checks if said manpages have a description for each program's
# long options. The list of program long options is based on the
-# respective program's source code.
+# respective program's source code.
-top_srcdir="${1:-.}"
+top_srcdir="$(realpath -qLs "${1:-.}")"
if [ -d "${top_srcdir}" ]; then
shift 1
else
exit 1
fi
-top_srcdir=${1:-.}
+top_srcdir="$(realpath -qLs "${1:-.}")"
if [ -d "${top_srcdir}" ]; then
shift 1
else
prog_long_opts="$( TOP_SRCDIR="${top_srcdir}" "${top_srcdir}"/tools/get-options.sh "$prog" \
| sed -e 's/^$//' -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')"
-
+
if [[ "$?" != "0" || -z "$prog_long_opts" ]]; then
echo "Failed to get long options for $prog"
return 1
# will be added to each respective tool's row and the script will
# exit with a non-zero status code.
-top_srcdir="${1:-.}"
+top_srcdir="$(realpath -qLs "${1:-.}")"
if [ -d "${top_srcdir}" ]; then
shift 1
else