-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sh
executable file
·65 lines (57 loc) · 2.03 KB
/
build.sh
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
#----------------------------------------------------------------------
#
# Build iOS FIPS module and library
#
LOGFILE=FIPS_build.log
RETURN_CODE=0
#----------------------------------------------------------------------
echo "Step 1 remove quarantine"
#----------------------------------------------------------------------
./step1_remove_Quarantine.sh 1>$LOGFILE 2>&1
#----------------------------------------------------------------------
echo "Step 2 build and install Incore Utility"
#----------------------------------------------------------------------
./step2_build_Incore_utility.sh 1>>$LOGFILE 2>&1
#----------------------------------------------------------------------
echo "Step 3 build FIPS Object Module"
#----------------------------------------------------------------------
./step3_build_FIPS_module.sh 1>>$LOGFILE 2>&1
if [ $? -eq 0 ] ; then
RETURN_CODE=0
else
echo "\t***error***"
RETURN_CODE=1
fi
if [ "$RETURN_CODE" -eq "0" ] ; then
#----------------------------------------------------------------------
echo "Step 4 install FIPS Object Module (/usr/local/ssl/Release-iphoneos/)"
#----------------------------------------------------------------------
./step4_install_FIPS_module.sh 1>>$LOGFILE 2>&1
if [ $? -eq 0 ] ; then
RETURN_CODE=0
else
echo "\t***error***"
RETURN_CODE=1
fi
fi
if [ "$RETURN_CODE" -eq "0" ] ; then
#----------------------------------------------------------------------
echo "Step 5 build FIPS Capable library"
#----------------------------------------------------------------------
./step5_build_FIPS_capable_library.sh 1>>$LOGFILE 2>&1
if [ $? -eq 0 ] ; then
RETURN_CODE=0
else
echo "\t***error***"
RETURN_CODE=1
fi
fi
if [ "$RETURN_CODE" -eq "0" ] ; then
#----------------------------------------------------------------------
echo "Step 6 install FIPS Capable library (/usr/local/ssl/Release-iphoneos/)"
#----------------------------------------------------------------------
./step6_install_FIPS_capable_library.sh 1>>$LOGFILE 2>&1
if [ $? -ne 0 ] ; then
echo "\t***error***"
fi
fi