Changeset View
Changeset View
Standalone View
Standalone View
Mk/Scripts/depends-list.sh
| Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | check_dep() { | ||||
| for _dep ; do | for _dep ; do | ||||
| myifs=${IFS} | myifs=${IFS} | ||||
| IFS=: | IFS=: | ||||
| set -- ${_dep} | set -- ${_dep} | ||||
| IFS=${myifs} | IFS=${myifs} | ||||
| case "${2}" in | case "${2}" in | ||||
| /*) d=${2} ;; | /*) d=${2} ;; | ||||
| *) d=${PORTSDIR}/${2} ;; | *) d=${PORTSDIR}/${2} ;; | ||||
| esac | esac | ||||
| case "${d}" in | |||||
| *@*/*) ;; # Ignore @ in the path which would not be a flavor | |||||
| *@*) d=${d%@*} ;; | |||||
| esac | |||||
| case " ${checked} " in | case " ${checked} " in | ||||
| *\ ${d}\ *) continue ;; # Already checked | *\ ${d}\ *) continue ;; # Already checked | ||||
| esac | esac | ||||
| checked="${checked} ${d}" | checked="${checked} ${d}" | ||||
| # Check if the dependency actually exists or skip otherwise. | # Check if the dependency actually exists or skip otherwise. | ||||
| if [ ! -d ${d} ]; then | if [ ! -d ${d} ]; then | ||||
| echo "${dp_PKGNAME}: \"${d}\" non-existent -- dependency list incomplete" >&2 | echo "${dp_PKGNAME}: \"${d}\" non-existent -- dependency list incomplete" >&2 | ||||
| continue | continue | ||||
| Show All 33 Lines | |||||