Changeset View
Changeset View
Standalone View
Standalone View
Mk/Scripts/do-depends.sh
Show First 20 Lines • Show All 127 Lines • ▼ Show 20 Lines | for _line in ${dp_RAWDEPENDS} ; do | ||||
*) origin="${PORTSDIR}/${origin}" ;; | *) origin="${PORTSDIR}/${origin}" ;; | ||||
esac | esac | ||||
case "${origin}" in | case "${origin}" in | ||||
*@*/*) ;; # Ignore @ in the path which would not be a flavor | *@*/*) ;; # Ignore @ in the path which would not be a flavor | ||||
*@*) | *@*) | ||||
export FLAVOR="${origin##*@}" | export FLAVOR="${origin##*@}" | ||||
origin=${origin%@*} | origin=${origin%@*} | ||||
;; | ;; | ||||
*~*/*) ;; # Ignore ~ in the path which would not be a subpackage | |||||
*~*) | |||||
se: Only "@" or "~" may occur in an origin since they are alternatives in a single case statement. | |||||
subpkg=${origin##*~} | |||||
origin=${origin%~*} | |||||
;; | |||||
esac | esac | ||||
depends_args="${dp_DEPENDS_ARGS}" | depends_args="${dp_DEPENDS_ARGS}" | ||||
target=${dp_DEPENDS_TARGET} | target=${dp_DEPENDS_TARGET} | ||||
if [ -n "${last}" ]; then | if [ -n "${last}" ]; then | ||||
target=${last} | target=${last} | ||||
if [ -n "${dp_DEPENDS_PRECLEAN}" ]; then | if [ -n "${dp_DEPENDS_PRECLEAN}" ]; then | ||||
target="clean ${target}" | target="clean ${target}" | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |
Only "@" or "~" may occur in an origin since they are alternatives in a single case statement.
If this was changed: what order of flavor and subpackage would be expected?