From 4f44016a2fb00f33b389f8e6ac7e5e6531998d7d Mon Sep 17 00:00:00 2001 From: Brad House Date: Thu, 15 Feb 2018 20:38:38 -0500 Subject: [PATCH] Add version update to CMakeLists in maketgz --- CMakeLists.txt | 2 +- RELEASE-PROCEDURE.md | 3 --- maketgz | 3 +++ 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d63b061c..dfca7cb1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,7 @@ INCLUDE (GNUInstallDirs) PROJECT (c-ares C) # Set this version before release -SET (CARES_VERSION "1.14.0") +SET (CARES_VERSION "1.14.1") # This is for libtool compatibility, and specified in a form that is easily # translatable from libtool (even if the actual form doesn't make sense). diff --git a/RELEASE-PROCEDURE.md b/RELEASE-PROCEDURE.md index 0062f4e3..b2fe5863 100644 --- a/RELEASE-PROCEDURE.md +++ b/RELEASE-PROCEDURE.md @@ -6,9 +6,6 @@ in the source code repo - edit `RELEASE-NOTES` to be accurate -- edit `configure.ac` and `CMakeLists.txt` to set the current version. - This is used to generate libcares.pc, otherwise it would not be necessary. - - edit `Makefile.am`'s `CARES_VERSION_INFO`, and `CMakeLists.txt`'s `CARES_LIB_VERSIONINFO` set to the same value to denote the current shared object versioning. diff --git a/maketgz b/maketgz index e582ff3a..684dd832 100755 --- a/maketgz +++ b/maketgz @@ -40,6 +40,9 @@ if(!-f "configure") { print "adding $version in the configure.ac file\n"; `sed -e 's/AC_INIT.*/AC_INIT([c-ares], [$version],/' < configure.ac > configure.ac.dist`; +print "adding $version in the CMakeLists.txt file\n"; +`sed -e 's/SET.*CARES_VERSION.*/SET (CARES_VERSION "$version")/' < CMakeLists.txt > CMakeLists.txt.dist && rm -f CMakeLists.txt && mv CMakeLists.txt.dist CMakeLists.txt`; + # now make a new configure script with this print "makes a new configure script\n"; `autoconf configure.ac.dist >configure`;