if [ "${file_path}" = '-' ]
then
tr '\n' '\0' \
- | xargs -0 -n1 -P1 -I{} \
+ | xargs -0 -P1 -I{} \
cygpath --unix '{}'
else
cygpath --unix "${file_path}"
Common::noOp
# FreeBSD specific
elif echo "${ldd_line}" \
- | egrep -q '/libc++|/libgxxrt'
+ | egrep -q '/libc\+\+|/libgxxrt'
then
Common::noOp
else
local lib_file="${1}"
case "${system_name}" in
- 'linux'|'freebsd')
- echo "${lib_file}" \
- | cut -f2 -d'/'
+ 'linux')
+ echo 'usr'
+ ;;
+ 'freebsd'|'macos')
+ echo 'usr/local'
;;
'windows')
basename "${lib_file}" \
| xargs -n1 -P1 which \
| cut -f2 -d'/'
;;
- 'macos')
- echo 'usr/local'
esac
}
-name '*.dll' \
-exec basename {} \; \
| tr '\n' '\0' \
- | xargs -0 -n1 -P1 -I{} \
+ | xargs -0 -P1 -I{} \
printf ' <file name="{}"/>\n'
}