summaryrefslogtreecommitdiff
path: root/regress/usr.bin/make/mk21
blob: 0827fb42ec3bbec2ed55044e6e0c4467e244add7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# $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"