Import ezmlm 0.53
[ezmlm] / default.do
CommitLineData
5b62e993
MW
1if test -r $1=x
2then
3 dependon $1=x
4 libs=`grep '\.lib *$' "$1=x"`
5 libscat=''
6 for i in $libs
7 do
8 libscat="$libscat "'`'"cat $i"'`'
9 done
10 objs=`grep -v '\.lib *$' "$1=x"`
11 dependon load $1.o $objs $libs
12 directtarget
13 formake ./load $1 $objs "$libscat"
14 eval ./load $1 $objs $libscat
15 exit 0
16fi
17
18if test -r $1=s
19then
20 dependon $1=s warn-auto.sh $1.sh
21 formake cat warn-auto.sh $1.sh '>' $1
22 formake chmod 755 $1
23 cat warn-auto.sh $1.sh
24 chmod 755 $3
25 exit 0
26fi
27
28case "$1" in
29 shar)
30 dependon FILES `cat FILES`
31 formake 'shar -m `cat FILES` > shar'
32 formake 'chmod 400 shar'
33 shar -m `cat FILES`
34 chmod 400 $3
35 ;;
36 compile|load|makelib)
37 dependon make-$1 warn-auto.sh systype
38 formake "( cat warn-auto.sh; ./make-$1 "'"`cat systype`"'" ) > $1"
39 formake "chmod 755 $1"
40 cat warn-auto.sh
41 ./make-$1 "`cat systype`"
42 chmod 755 $3
43 ;;
44 make-compile|make-load|make-makelib)
45 dependon $1.sh auto-ccld.sh
46 formake "cat auto-ccld.sh $1.sh > $1"
47 formake "chmod 755 $1"
48 cat auto-ccld.sh $1.sh
49 chmod 755 $3
50 ;;
51 systype)
52 dependon find-systype trycpp.c
53 formake './find-systype > systype'
54 ./find-systype
55 ;;
56 find-systype)
57 dependon find-systype.sh auto-ccld.sh
58 formake 'cat auto-ccld.sh find-systype.sh > find-systype'
59 formake 'chmod 755 find-systype'
60 cat auto-ccld.sh find-systype.sh
61 chmod 755 $3
62 ;;
63 auto-ccld.sh)
64 dependon conf-cc conf-ld warn-auto.sh
65 formake '( cat warn-auto.sh; \'
66 formake 'echo CC=\'\''`head -1 conf-cc`\'\''; \'
67 formake 'echo LD=\'\''`head -1 conf-ld`\'\'' \'
68 formake ') > auto-ccld.sh'
69 cat warn-auto.sh
70 echo CC=\'`head -1 conf-cc`\'
71 echo LD=\'`head -1 conf-ld`\'
72 ;;
73 *)
74 nosuchtarget
75 ;;
76esac