diff options
author | Petteri Aimonen <jpa@github.mail.kapsi.fi> | 2016-10-10 07:25:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-10 07:25:35 +0300 |
commit | fe0aca04cbc41327144813ca54ea37aafb866d25 (patch) | |
tree | 1eba7ff46e34f155f8491514beeb99e2709d7aa6 /tools/set_version.sh | |
parent | 060e6a6cc21eaf555cba6d3ee2558527e6790a5f (diff) | |
parent | 6e47677acf98934b76fb5f6337867b276ce7bce8 (diff) |
Merge pull request #208 from podsvirov/topic-cmake-project
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 |