/[TIS-4000 Rel T60]/scripts/CheckSum
ViewVC logotype

Contents of /scripts/CheckSum

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations)
Tue Jun 27 18:53:52 2000 UTC (23 years, 3 months ago) by tis4000
Branch: MAIN
CVS Tags: LMC_baseline, Duluth_baseline, HEAD
Changes since 1.1: +25 -19 lines
Changed results to be placed into distribution directory. - NDalesio

1 #!/bin/sh
2 #
3 begin="x"
4 installdir="x"
5 rel="x"
6 relDisk="x"
7 targetIOC="x"
8 tortype="x"
9 #
10 # This script will check the sums of files in the bin directories.
11 # The output is place in the $relDisk checksum directory.
12 #
13 echo
14 echo "Please enter release disk mount point with the leading slash /"
15 read relDisk
16 echo "Using $relDisk"
17
18 echo
19 echo "Please enter the distribution directory: "
20 read installdir
21 echo "Installing $installdir"
22
23 echo
24 echo "Is this release t55 or t60? "
25 read rel
26 echo "Using $rel"
27
28 until [ "$tortype" = Tornado ] || [ "$tortype" = Tornado2 ] || [ "$tortype" = both ]
29 do
30 echo
31 echo "Does this use (Tornado or Tornado2 or both)? "
32 read tortype
33 echo "Using $tortype"
34 done
35
36 until [ "$targetIOC" = X486 ] || [ "$targetIOC" = M30 ]
37 do
38 echo
39 echo "Which IOC type is this (X486 or M30)? "
40 read targetIOC
41 echo "Using $targetIOC"
42 done
43
44 echo
45 echo "Please enter the release tag or today's date"
46 read tag
47
48 until [ "$begin" = n ] || [ "$begin" = y ]
49 do
50 echo
51 echo "This script will calculate checksums of the binary files."
52 echo "The output will be placed in $relDisk/$installdir/checksum/SUM$tag file and"
53 echo "a copy will be mailed to the scm."
54 echo "Continue? y/n"
55 read begin
56 echo
57 done
58
59 if [ $begin = y ]
60 then
61 echo "Ready to calculate checksums......"
62 echo
63 mkdir $relDisk/$installdir/checksum
64
65 #
66 # Check sum in Unix/sun2.4 directory
67 #
68
69 echo $relDisk/$rel/Unix/sun2.4/bin >> $relDisk/$installdir/checksum/SUM$tag
70 for filename in `grep -h "Host" tistasksfiles | awk '{ print $1 }'`
71 do
72 echo >> $relDisk/$installdir/checksum/SUM$tag
73 echo $filename | awk '{ printf "%-30s", $1 }' >> $relDisk/$installdir/checksum/SUM$tag
74 sum $relDisk/$rel/Unix/sun2.4/bin/$filename | awk '{ printf "\t%d\t%d", $1, $2 }' >> $relDisk/$installdir/checksum/SUM$tag
75 done
76
77 #
78 # Check sum in Tornado directory
79 #
80
81 if [ "$tortype" = Tornado ] || [ "$tortype" = both ]
82 then
83 echo >> $relDisk/$installdir/checksum/SUM$tag
84 echo >> $relDisk/$installdir/checksum/SUM$tag
85 echo $relDisk/$rel/Tornado/bin/$targetIOC >> $relDisk/$installdir/checksum/SUM$tag
86 for filename in `grep -h "IOC" tistasksfiles | awk '{ print $1 }'`
87 do
88 echo >> $relDisk/$installdir/checksum/SUM$tag
89 echo $filename | awk '{ printf "%-30s", $1 }' >> $relDisk/$installdir/checksum/SUM$tag
90 sum $relDisk/$rel/Tornado/bin/$targetIOC/$filename | awk '{ printf "\t%d\t%d", $1, $2 }' >> $relDisk/$installdir/checksum/SUM$tag
91 done
92 fi
93
94 #
95 # Check sum in Tornado2 directory
96 #
97
98 if [ "$tortype" = Tornado2 ] || [ "$tortype" = both ]
99 then
100 echo >> $relDisk/$installdir/checksum/SUM$tag
101 echo >> $relDisk/$installdir/checksum/SUM$tag
102 echo $relDisk/$rel/Tornado2/bin/$targetIOC >> $relDisk/$installdir/checksum/SUM$tag
103 for filename in `grep -h "IOC" tistasksfiles | awk '{ print $1 }'`
104 do
105 echo >> $relDisk/$installdir/checksum/SUM$tag
106 echo $filename | awk '{ printf "%-30s", $1 }'>> $relDisk/$installdir/checksum/SUM$tag
107 sum $relDisk/$rel/Tornado2/bin/$targetIOC/$filename | awk '{ printf "\t%d\t%d", $1, $2 }' >> $relDisk/$installdir/checksum/SUM$tag
108 done
109 fi
110
111 fi
112
113
114 mail scm < $relDisk/$installdir/checksum/SUM$tag
115

  ViewVC Help
Powered by ViewVC 1.1.30