-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMAKE_ME.sh
More file actions
executable file
·73 lines (72 loc) · 1.34 KB
/
Copy pathMAKE_ME.sh
File metadata and controls
executable file
·73 lines (72 loc) · 1.34 KB
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
71
72
73
_functions ()
{
set | awk 'NF == 2 && $2 ~ /^[(][)]$/ { print $1 }'
}
_mk_msg ()
{
printf "$* ? " > /dev/tty;
read a < /dev/tty
}
_mk_one ()
{
( echo ONE $1 $PWD;
_functions | wc ) >> $err;
dirs;
_mk_msg wc -l $(wc -l $err)
}
_mk_funw ()
{
grep "^$1 [(][)]" ./*lib ./*/*lib
}
_mk_init ()
{
make_initialize 2>> $err;
_mk_one INIT
}
_mk_here ()
{
mk_dot 2>> $err;
_mk_one HERE
}
_acd ()
{
cd $1;
$2;
_mk_one $2
}
_mk_run ()
{
case $PWD in
$HOME)
return;;
esac
unset $( _functions| grep -v '^_' );
_functions;
dirs -c;
err=$PWD/make.err;
rm -f $err;
_mk_one;
[[ -d ./make ]] || { cd ..; _mk_run; }
cd ./make;
. mklib;
_acd ../make _mk_here;
_acd ../smpub _mk_here;
_functions | grep public_variable
_mk_msg public_variable
_acd ../shelf _mk_here;
_functions | grep -v '^_' | sort > ../mkfuns.txt;
_mk_msg all MK wc -l $(wc -l ../mkfuns.txt);
_acd ../shelf _mk_init;
_acd ../smpub _mk_init;
_acd ../make _mk_init;
_functions | grep -v '^_' | sort > ../initfuns.txt;
_mk_msg all INIT wc -l $(wc -l ../initfuns.txt);
_acd ../shelf public_update;
_acd ../smpub public_update;
_acd ../make public_update;
_acd .. dirs
_mk_msg TIME to QUIT
return
echo NEVER Get HERE
}
echo _mk_run