Lines Matching +full:- +full:- +full:verbose
4 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
10 # Usage: bump_version.sh [ --version <version> ] [ --so-crypto <version>]
11 # [ --so-x509 <version> ] [ --so-tls <version> ]
12 # [ -v | --verbose ] [ -h | --help ]
15 set -e
22 until [ -z "$1" ]
25 --version)
30 --so-crypto)
34 --so-x509)
38 --so-tls)
42 -v|--verbose)
43 # Be verbose
44 VERBOSE="1"
46 -h|--help)
49 echo -e " -h|--help\t\tPrint this help."
50 echo -e " --version <version>\tVersion to bump to."
51 echo -e " --so-crypto <version>\tSO version to bump libmbedcrypto to."
52 echo -e " --so-x509 <version>\tSO version to bump libmbedx509 to."
53 echo -e " --so-tls <version>\tSO version to bump libmbedtls to."
54 echo -e " -v|--verbose\t\tVerbose."
72 [ $VERBOSE ] && echo "Bumping VERSION in CMakeLists.txt"
73 sed -e "s/ VERSION [0-9.]\{1,\}/ VERSION $VERSION/g" < CMakeLists.txt > tmp
76 [ $VERBOSE ] && echo "Bumping VERSION in library/CMakeLists.txt"
77 sed -e "s/ VERSION [0-9.]\{1,\}/ VERSION $VERSION/g" < library/CMakeLists.txt > tmp
82 [ $VERBOSE ] && echo "Bumping SOVERSION for libmbedcrypto in library/CMakeLists.txt"
83 …sed -e "/mbedcrypto/ s/ SOVERSION [0-9]\{1,\}/ SOVERSION $SO_CRYPTO/g" < library/CMakeLists.txt > …
86 [ $VERBOSE ] && echo "Bumping SOVERSION for libmbedcrypto in library/Makefile"
87 sed -e "s/SOEXT_CRYPTO?=so.[0-9]\{1,\}/SOEXT_CRYPTO?=so.$SO_CRYPTO/g" < library/Makefile > tmp
93 [ $VERBOSE ] && echo "Bumping SOVERSION for libmbedx509 in library/CMakeLists.txt"
94 sed -e "/mbedx509/ s/ SOVERSION [0-9]\{1,\}/ SOVERSION $SO_X509/g" < library/CMakeLists.txt > tmp
97 [ $VERBOSE ] && echo "Bumping SOVERSION for libmbedx509 in library/Makefile"
98 sed -e "s/SOEXT_X509?=so.[0-9]\{1,\}/SOEXT_X509?=so.$SO_X509/g" < library/Makefile > tmp
104 [ $VERBOSE ] && echo "Bumping SOVERSION for libmbedtls in library/CMakeLists.txt"
105 sed -e "/mbedtls/ s/ SOVERSION [0-9]\{1,\}/ SOVERSION $SO_TLS/g" < library/CMakeLists.txt > tmp
108 [ $VERBOSE ] && echo "Bumping SOVERSION for libmbedtls in library/Makefile"
109 sed -e "s/SOEXT_TLS?=so.[0-9]\{1,\}/SOEXT_TLS?=so.$SO_TLS/g" < library/Makefile > tmp
113 [ $VERBOSE ] && echo "Bumping VERSION in include/mbedtls/build_info.h"
117 sed -e "s/\(# *define *[A-Z]*_VERSION\)_MAJOR .\{1,\}/\1_MAJOR $MAJOR/" | \
118 sed -e "s/\(# *define *[A-Z]*_VERSION\)_MINOR .\{1,\}/\1_MINOR $MINOR/" | \
119 sed -e "s/\(# *define *[A-Z]*_VERSION\)_PATCH .\{1,\}/\1_PATCH $PATCH/" | \
120 sed -e "s/\(# *define *[A-Z]*_VERSION\)_NUMBER .\{1,\}/\1_NUMBER $VERSION_NR/" | \
121 sed -e "s/\(# *define *[A-Z]*_VERSION\)_STRING .\{1,\}/\1_STRING \"$VERSION\"/" | \
122 …sed -e "s/\(# *define *[A-Z]*_VERSION\)_STRING_FULL .\{1,\}/\1_STRING_FULL \"Mbed TLS $VERSION…
126 [ $VERBOSE ] && echo "Bumping version in tests/suites/test_suite_version.data"
127 sed -e "s/version:\".\{1,\}/version:\"$VERSION\"/g" < tests/suites/test_suite_version.data > tmp
130 [ $VERBOSE ] && echo "Bumping PROJECT_NAME in doxygen/mbedtls.doxyfile and doxygen/input/doc_mainpa…
133 sed -e "s/\\([Mm]bed TLS v\\)[0-9][0-9.]*/\\1$VERSION/g" < $i > tmp
137 [ $VERBOSE ] && echo "Re-generating library/error.c"
140 [ $VERBOSE ] && echo "Re-generating programs/test/query_config.c"
143 [ $VERBOSE ] && echo "Re-generating library/version_features.c"
146 [ $VERBOSE ] && echo "Re-generating visualc files"