-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCheckApps
executable file
·48 lines (43 loc) · 1.17 KB
/
CheckApps
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
#!/bin/sh
#
# Check the installation for missing applications
#
DDS_DIST=${DDS_DIST:-/tstapps/global}
appdir=$DDS_DIST/`$DDSROOT/src/lib/host/HostDir -x`
libdir=$DDSROOT/lib/`$DDSROOT/src/lib/host/HostDir -b`/`$DDSROOT/src/lib/host/HostComp -d`
n=0
m=0
N=0
M=0
cd $DDSROOT/src/cmd
progs=`ls */Makefile`
for prog in $progs; do
app=${prog%/Makefile}
lib=`echo $app|sed 's/^lib.*/lib/'`
if [ "$lib" = lib ]; then
m=$(($m+1))
if [ ! -f $libdir/$app.a ]; then
M=$(($M+1))
echo "Application Library not installed: $libdir/$app.a"
echo "(Go to $DDSROOT/src/cmd/$app and run 'make' & 'make install')"
fi
else
n=$(($n+1))
if [ ! -f $appdir/$app ]; then
N=$(($N+1))
echo "Application Program not installed: $appdir/$app"
echo "(Go to $DDSROOT/src/cmd/$app and run 'make' & 'make install')"
fi
fi
done
echo
if [ $M -gt 0 ]; then
echo "*** $M Application Libraries not installed ***"
else
echo "*** All $m Application Libraries installed ***"
fi
if [ $N -gt 0 ]; then
echo "*** $N Application Programs not installed ***"
else
echo "*** All $n Application Programs installed ***"
fi