# $OpenBSD: mk21,v 1.2 2017/07/07 16:31:37 bluhm Exp $ TRUC= http://heanet.dl.sourceforge.net/sourceforge/%SUBDIR%/ .for _S in ${TRUC} S?= ${_S:S/^${_S:C@([^:/])/.+$@\1/@}//:S/^://} .endfor _S= ${TRUC} T?= ${_S:S/^${_S:C@([^:/])/.+$@\1/@}//:S/^://} X?= ${TRUC:C@([^:/])/.+$@\1/@} Y?= ${TRUC:S/^${X}//:S/^://} Z?= ${TRUC:S/^${TRUC:C@([^:/])/.+$@\1/@}//:S/^://} all: @echo "S= $S" @echo "T= $T" @echo "X= $X" @echo "Y= $Y" @echo "Z= $Z"