diff options
author | Konstantin Podsvirov <konstantin@podsvirov.pro> | 2016-07-26 23:33:33 +0300 |
---|---|---|
committer | Konstantin Podsvirov <konstantin@podsvirov.pro> | 2016-07-26 23:33:33 +0300 |
commit | 6e47677acf98934b76fb5f6337867b276ce7bce8 (patch) | |
tree | f8c46e4755e5c3e64bef439106aa98652985eeeb /tools/set_version.sh | |
parent | 298d00e8d73c23b8b2537489aee4319a43968e9e (diff) |
Added CMake project
Diffstat (limited to 'tools/set_version.sh')
-rwxr-xr-x | tools/set_version.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/set_version.sh b/tools/set_version.sh index e15a859d..f989308c 100755 --- a/tools/set_version.sh +++ b/tools/set_version.sh @@ -6,5 +6,6 @@ sed -i -e 's/nanopb_version\s*=\s*"[^"]*"/nanopb_version = "'$1'"/' generator/nanopb_generator.py sed -i -e 's/#define\s*NANOPB_VERSION\s*.*/#define NANOPB_VERSION '$1'/' pb.h +sed -i -e 's/set(\s*nanopb_VERSION_STRING\s*[^)]*)/set(nanopb_VERSION_STRING '$1')/' CMakeLists.txt |