• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:verbose

4 # SPDX-License-Identifier: Apache-2.0
10 # http://www.apache.org/licenses/LICENSE-2.0
22 # Usage: bump_version.sh [ --version <version> ] [ --so-crypto <version>]
23 # [ --so-x509 <version> ] [ --so-tls <version> ]
24 # [ -v | --verbose ] [ -h | --help ]
27 set -e
34 until [ -z "$1" ]
37 --version)
42 --so-crypto)
46 --so-x509)
50 --so-tls)
54 -v|--verbose)
55 # Be verbose
56 VERBOSE="1"
58 -h|--help)
61 echo -e " -h|--help\t\tPrint this help."
62 echo -e " --version <version>\tVersion to bump to."
63 echo -e " --so-crypto <version>\tSO version to bump libmbedcrypto to."
64 echo -e " --so-x509 <version>\tSO version to bump libmbedx509 to."
65 echo -e " --so-tls <version>\tSO version to bump libmbedtls to."
66 echo -e " -v|--verbose\t\tVerbose."
84 [ $VERBOSE ] && echo "Bumping VERSION in CMakeLists.txt"
85 sed -e "s/ VERSION [0-9.]\{1,\}/ VERSION $VERSION/g" < CMakeLists.txt > tmp
88 [ $VERBOSE ] && echo "Bumping VERSION in library/CMakeLists.txt"
89 sed -e "s/ VERSION [0-9.]\{1,\}/ VERSION $VERSION/g" < library/CMakeLists.txt > tmp
94 [ $VERBOSE ] && echo "Bumping SOVERSION for libmbedcrypto in library/CMakeLists.txt"
95 …sed -e "/mbedcrypto/ s/ SOVERSION [0-9]\{1,\}/ SOVERSION $SO_CRYPTO/g" < library/CMakeLists.txt > …
98 [ $VERBOSE ] && echo "Bumping SOVERSION for libmbedcrypto in library/Makefile"
99 sed -e "s/SOEXT_CRYPTO?=so.[0-9]\{1,\}/SOEXT_CRYPTO?=so.$SO_CRYPTO/g" < library/Makefile > tmp
105 [ $VERBOSE ] && echo "Bumping SOVERSION for libmbedx509 in library/CMakeLists.txt"
106 sed -e "/mbedx509/ s/ SOVERSION [0-9]\{1,\}/ SOVERSION $SO_X509/g" < library/CMakeLists.txt > tmp
109 [ $VERBOSE ] && echo "Bumping SOVERSION for libmbedx509 in library/Makefile"
110 sed -e "s/SOEXT_X509?=so.[0-9]\{1,\}/SOEXT_X509?=so.$SO_X509/g" < library/Makefile > tmp
116 [ $VERBOSE ] && echo "Bumping SOVERSION for libmbedtls in library/CMakeLists.txt"
117 sed -e "/mbedtls/ s/ SOVERSION [0-9]\{1,\}/ SOVERSION $SO_TLS/g" < library/CMakeLists.txt > tmp
120 [ $VERBOSE ] && echo "Bumping SOVERSION for libmbedtls in library/Makefile"
121 sed -e "s/SOEXT_TLS?=so.[0-9]\{1,\}/SOEXT_TLS?=so.$SO_TLS/g" < library/Makefile > tmp
125 [ $VERBOSE ] && echo "Bumping VERSION in include/mbedtls/build_info.h"
129 sed -e "s/\(# *define *[A-Z]*_VERSION\)_MAJOR .\{1,\}/\1_MAJOR $MAJOR/" | \
130 sed -e "s/\(# *define *[A-Z]*_VERSION\)_MINOR .\{1,\}/\1_MINOR $MINOR/" | \
131 sed -e "s/\(# *define *[A-Z]*_VERSION\)_PATCH .\{1,\}/\1_PATCH $PATCH/" | \
132 sed -e "s/\(# *define *[A-Z]*_VERSION\)_NUMBER .\{1,\}/\1_NUMBER $VERSION_NR/" | \
133 sed -e "s/\(# *define *[A-Z]*_VERSION\)_STRING .\{1,\}/\1_STRING \"$VERSION\"/" | \
134 …sed -e "s/\(# *define *[A-Z]*_VERSION\)_STRING_FULL .\{1,\}/\1_STRING_FULL \"mbed TLS $VERSION…
138 [ $VERBOSE ] && echo "Bumping version in tests/suites/test_suite_version.data"
139 sed -e "s/version:\".\{1,\}/version:\"$VERSION\"/g" < tests/suites/test_suite_version.data > tmp
142 [ $VERBOSE ] && echo "Bumping PROJECT_NAME in doxygen/mbedtls.doxyfile and doxygen/input/doc_mainpa…
145 sed -e "s/mbed TLS v[0-9\.]\{1,\}/mbed TLS v$VERSION/g" < $i > tmp
149 [ $VERBOSE ] && echo "Re-generating library/error.c"
152 [ $VERBOSE ] && echo "Re-generating programs/test/query_config.c"
155 [ $VERBOSE ] && echo "Re-generating library/version_features.c"
158 [ $VERBOSE ] && echo "Re-generating visualc files"