blob: c0db874edbaa292d461626b36fa3cdf9fd7fc084 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# $OpenBSD: mk21,v 1.3 2020/08/30 12:17:19 tb 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/^://}
A?= machin truc
B?= ${A:S/^/mot: &/}
C?= ${A:S/$/&: mot/}
D?= foo bar barr
E?= ${D:S/^b/s&/}
F?= ${D:S/r$/&/}
G?= ${D:S/^bar$/&&ian/}
all:
@echo "B= $B"
@echo "C= $C"
@echo "E= $E"
@echo "F= $F"
@echo "G= $G"
@echo "S= $S"
@echo "T= $T"
@echo "X= $X"
@echo "Y= $Y"
@echo "Z= $Z"
|