blob: 81654b53f12273eb20aa51ec3631d347f2be2923 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
MKSHELL=rc
new-%:V:
t=$stem
if(! ~ $t utf fmt bio regexp mk){
echo bad target
exit oops
}
if(! ~ $t mk)
t=lib$t
mkdir -p $t
rm -f $t/*
cd $t
mk -f ../mkfile.$stem
cd ..
test-%:V:
t=$stem
path=($PLAN9/bin $path)
mk new-$t
cd $t
switch($t){
case bio; d=libbio
case regexp; d=libregexp
case fmt; d=lib9/fmt
case utf: d=lib9/utf
case mk; d=cmd/mk
}
d=$PLAN9/src/$d
for(i in `{ls -p $d/*.c})
if(! test -f $i)
echo XXX missing $i
make
for(i in `{ls *.c})
if(! test -f `{echo $i | sed 's/.c$/.o/'})
echo XXX not building $i
cd ..
rm -r $t
lib%.tgz:V:
mk new-$stem
tar cf - lib$stem | gzip > $target
libregexp9.tgz:V:
mk new-regexp
tar cf - libregexp | gzip >$target
mk.tgz:V:
mk new-mk
tar cf - mk | gzip > $target
mk-with-libs.tgz:V:
mk new-utf
mk new-fmt
mk new-bio
mk new-regexp
mk new-mk
rm -rf zot
mkdir zot
mv libutf libfmt libbio libregexp mk zot
mv zot mk
cp Makefile mk/Makefile
tar cf - mk | gzip > $target
rm -r mk
tgz:V: libutf.tgz libfmt.tgz libregexp9.tgz libbio.tgz mk.tgz mk-with-libs.tgz
push:
rsync -e ssh -t *.tgz swtch:www/swtch.com/plan9port/unix
ssh swtch rm -f www/swtch.com/plan9port/unix/*.sha1 \
www/swtch.com/plan9port/unix/*.md5
|