-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakeApps
executable file
·80 lines (73 loc) · 1.7 KB
/
MakeApps
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
74
75
76
77
78
79
80
#!/bin/csh -f
#
# Script to make and install all application programs and scripts
#
if ( "${DDSROOT}." == "." ) then
echo "DDSROOT not defined"
exit
endif
if ( "${DDS_DIST}." == "." ) then
echo "DDS_DIST not defined"
exit
endif
if ( ! $?HOST ) then
set HOST = `uname -n`
endif
set log = ${DDSROOT}/mklog.${HOST}
rm -f ${log} >& /dev/null
touch ${log} >& /dev/null
#
# Build application libraries first
#
cd ${DDSROOT}/src/cmd
set progs = `ls lib*/Makefile`
foreach prog ( $progs )
grep -l PrjLibs $prog >& /dev/null
if ($status != 0) then
set prog = ${prog:h}
echo Building and Installing program: $prog
echo >>& ${log}
echo Building and Installing program: $prog >>& ${log}
( cd $prog;make;make install ) >>& ${log}
endif
end
#
# Now build libraries dependent on others
#
set progs = `grep -l PrjLibs lib*/Makefile`
foreach prog ( $progs )
set prog = ${prog:h}
echo Building and Installing program: $prog
echo >>& ${log}
echo Building and Installing program: $prog >>& ${log}
( cd $prog;make;make install ) >>& ${log}
end
#
# Find all apps to make
#
cd ${DDSROOT}/src/cmd
set progs = `ls */Makefile`
foreach prog ( $progs )
set lib=`echo $prog|awk -Fb '{print $1}'`
if ("$lib" == "li") continue
set prog = ${prog:h}
echo Building and Installing program: $prog
echo >>& ${log}
echo Building and Installing program: $prog >>& ${log}
( cd $prog;make;make install ) >>& ${log}
end
#
# Check for new HPC architecture.
#
if ( -d ${DDS_DIST}/asi ) then
ls -tl ${DDS_DIST}/asi/*/*/mbs/prod/*
else
ls -tl ${DDS_DIST}/*/*/mbs/prod/*
endif
#
# install any scripts
#
echo Installing scripts
cd ${DDSROOT}/src/scripts >>& ${log}
make
echo log in ${log}