1 79ff7e4b 2008-01-10 rsc MKSHELL=$PLAN9/bin/rc
4 78e51a8c 2005-01-14 devnull if(! ~ $t utf fmt bio regexp mk){
5 78e51a8c 2005-01-14 devnull echo bad target
8 78e51a8c 2005-01-14 devnull if(! ~ $t mk)
10 1b7f98fb 2004-12-28 devnull mkdir -p $t
11 78e51a8c 2005-01-14 devnull rm -f $t/*
13 78e51a8c 2005-01-14 devnull mk -f ../mkfile.$stem
16 78e51a8c 2005-01-14 devnull test-%:V:
18 78e51a8c 2005-01-14 devnull path=($PLAN9/bin $path)
19 78e51a8c 2005-01-14 devnull mk new-$t
20 78e51a8c 2005-01-14 devnull switch($t){
21 f5fcdeee 2008-07-20 rsc case bio; d=libbio; td=libbio
22 f5fcdeee 2008-07-20 rsc case regexp; d=libregexp; td=libregexp
23 f5fcdeee 2008-07-20 rsc case fmt; d=lib9/fmt; td=libfmt
24 f5fcdeee 2008-07-20 rsc case utf; d=lib9/utf; td=libutf
25 f5fcdeee 2008-07-20 rsc case mk; d=cmd/mk; td=mk
28 78e51a8c 2005-01-14 devnull d=$PLAN9/src/$d
29 78e51a8c 2005-01-14 devnull for(i in `{ls -p $d/*.c})
30 78e51a8c 2005-01-14 devnull if(! test -f $i)
31 78e51a8c 2005-01-14 devnull echo XXX missing $i
33 78e51a8c 2005-01-14 devnull for(i in `{ls *.c})
34 78e51a8c 2005-01-14 devnull if(! test -f `{echo $i | sed 's/.c$/.o/'})
35 78e51a8c 2005-01-14 devnull echo XXX not building $i
39 78e51a8c 2005-01-14 devnull lib%.tgz:V:
40 78e51a8c 2005-01-14 devnull mk new-$stem
41 646799d4 2005-01-23 devnull tar cf - lib$stem | gzip > $target
43 78e51a8c 2005-01-14 devnull libregexp9.tgz:V:
44 78e51a8c 2005-01-14 devnull mk new-regexp
45 646799d4 2005-01-23 devnull tar cf - libregexp | gzip >$target
47 78e51a8c 2005-01-14 devnull mk.tgz:V:
48 78e51a8c 2005-01-14 devnull mk new-mk
49 646799d4 2005-01-23 devnull tar cf - mk | gzip > $target
51 78e51a8c 2005-01-14 devnull mk-with-libs.tgz:V:
52 78e51a8c 2005-01-14 devnull mk new-utf
53 78e51a8c 2005-01-14 devnull mk new-fmt
54 78e51a8c 2005-01-14 devnull mk new-bio
55 78e51a8c 2005-01-14 devnull mk new-regexp
56 78e51a8c 2005-01-14 devnull mk new-mk
57 78e51a8c 2005-01-14 devnull rm -rf zot
58 78e51a8c 2005-01-14 devnull mkdir zot
59 78e51a8c 2005-01-14 devnull mv libutf libfmt libbio libregexp mk zot
60 78e51a8c 2005-01-14 devnull mv zot mk
61 51f6e204 2009-08-24 rsc cp make/Makefile.all mk/Makefile
62 646799d4 2005-01-23 devnull tar cf - mk | gzip > $target
65 78e51a8c 2005-01-14 devnull tgz:V: libutf.tgz libfmt.tgz libregexp9.tgz libbio.tgz mk.tgz mk-with-libs.tgz
68 a3993885 2017-09-01 rsc rm -f *.sha1 *.md5 *.sha256
69 a3993885 2017-09-01 rsc for (i in *.tgz)
70 a3993885 2017-09-01 rsc sha1sum $i >$i.sha1
71 a3993885 2017-09-01 rsc cp *.tgz $9fansweb/plan9port/unix
72 a3993885 2017-09-01 rsc cp *.tgz.sha1 $9fansweb/plan9port/unix