mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
Don't need to store state anymore
This commit is contained in:
@@ -43,14 +43,6 @@
|
|||||||
######################## FUNCTIONS SECTION ####################################
|
######################## FUNCTIONS SECTION ####################################
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
#function for restoring a previous configure state
|
|
||||||
restore_config(){
|
|
||||||
mv tmp.status config.status
|
|
||||||
mv tmp.options.h wolfssl/options.h
|
|
||||||
make clean
|
|
||||||
make -j 8
|
|
||||||
}
|
|
||||||
|
|
||||||
check_result(){
|
check_result(){
|
||||||
if [ $1 -ne 0 ]; then
|
if [ $1 -ne 0 ]; then
|
||||||
echo "Failed at \"$2\", Abort"
|
echo "Failed at \"$2\", Abort"
|
||||||
@@ -863,11 +855,6 @@ if [ ! -z "$1" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Saving the configure state"
|
|
||||||
echo ""
|
|
||||||
cp config.status tmp.status || exit 1
|
|
||||||
cp wolfssl/options.h tmp.options.h || exit 1
|
|
||||||
|
|
||||||
echo "Running make clean"
|
echo "Running make clean"
|
||||||
echo ""
|
echo ""
|
||||||
make clean
|
make clean
|
||||||
@@ -877,8 +864,4 @@ run_renewcerts
|
|||||||
cd ../ || exit 1
|
cd ../ || exit 1
|
||||||
rm ./certs/wolfssl.cnf
|
rm ./certs/wolfssl.cnf
|
||||||
|
|
||||||
# restore previous configure state
|
|
||||||
restore_config
|
|
||||||
check_result $? "restoring old configuration"
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Reference in New Issue
Block a user