xbps-src: reduce basename(1) usage.
This saves a few exec()s.
This commit is contained in:
parent
64061588fc
commit
1ee6a3174f
5 changed files with 19 additions and 13 deletions
|
@ -99,7 +99,8 @@ show_pkg_build_depends() {
|
|||
_pkgname="$f"
|
||||
fi
|
||||
_pkgname=${_pkgname/-32bit}
|
||||
_srcpkg=$(basename $(readlink -f ${XBPS_SRCPKGDIR}/${_pkgname}))
|
||||
_srcpkg=$(readlink -f ${XBPS_SRCPKGDIR}/${_pkgname})
|
||||
_srcpkg=${_srcpkg##*/}
|
||||
echo "${_srcpkg}" >> $result
|
||||
done
|
||||
sort -u $result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue