This is an automated email from the ASF dual-hosted git repository.

bneradt pushed a commit to branch dev-1-0-9
in repository https://gitbox.apache.org/repos/asf/trafficserver-libswoc.git

commit cc3e3146bdba8f6cb673e8e661317c89eb58803f
Author: Alan M. Carroll <a...@apache.org>
AuthorDate: Sat Oct 19 12:22:48 2019 -0500

    Upgrade to 1.0.9.
---
 CMakeLists.txt                     |  1 +
 doc/Doxyfile                       |  2 +-
 doc/conf.py                        |  4 ++--
 swoc++/CMakeLists.txt              |  2 +-
 swoc++/include/swoc/swoc_version.h |  6 +++---
 tools/update-version.sh            | 16 ++++++++++++++++
 6 files changed, 24 insertions(+), 7 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index b615fdb..d0aecab 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,6 @@
 cmake_minimum_required(VERSION 3.12)
 
+project("Solid Wall Of C++ Library")
 set(INSTALL_DIR ${CMAKE_HOME_DIRECTORY})
 
 # Fortunately this has no external dependencies so the set up can be simple.
diff --git a/doc/Doxyfile b/doc/Doxyfile
index 69b1637..155a1e5 100644
--- a/doc/Doxyfile
+++ b/doc/Doxyfile
@@ -38,7 +38,7 @@ PROJECT_NAME           = "LibSWOC++"
 # could be handy for archiving the generated documentation or if some version
 # control system is used.
 
-PROJECT_NUMBER         = "1.0.8"
+PROJECT_NUMBER         = "1.0.9"
 
 # Using the PROJECT_BRIEF tag one can provide an optional one line description
 # for a project that appears at the top of each page and should give viewer a
diff --git a/doc/conf.py b/doc/conf.py
index f5b0c42..72bdcf6 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -80,7 +80,7 @@ project = u'Solid Wall Of C++'
 copyright = u'{}, a...@apache.org'.format(date.today().year)
 
 # The full version, including alpha/beta/rc tags.
-release = "1.0.8"
+release = "1.0.9"
 # The short X.Y version.
 version = '.'.join(release.split('.', 2)[:2])
 
@@ -326,7 +326,7 @@ texinfo_documents = [
 epub_title = u'Solid Wall of C++'
 epub_author = u'a...@apache.org'
 epub_publisher = u'a...@apache.org'
-epub_copyright = u'2018, a...@apache.org'
+epub_copyright = u'2019, a...@apache.org'
 
 # The language of the text. It defaults to the language option
 # or en if the language is not set.
diff --git a/swoc++/CMakeLists.txt b/swoc++/CMakeLists.txt
index 898279e..bbf358e 100644
--- a/swoc++/CMakeLists.txt
+++ b/swoc++/CMakeLists.txt
@@ -1,7 +1,7 @@
 cmake_minimum_required(VERSION 3.12)
 
 project(lib-swoc++ CXX)
-set(LIBSWOC_VERSION "1.0.8")
+set(LIBSWOC_VERSION "1.0.9")
 set(CMAKE_CXX_STANDARD 17)
 include(GNUInstallDirs)
 
diff --git a/swoc++/include/swoc/swoc_version.h 
b/swoc++/include/swoc/swoc_version.h
index 4eb8d6c..36dea4b 100644
--- a/swoc++/include/swoc/swoc_version.h
+++ b/swoc++/include/swoc/swoc_version.h
@@ -37,8 +37,8 @@
 
 namespace swoc
 {
-static constexpr unsigned MAJOR_VERION  = 1;
-static constexpr unsigned MINOR_VERSION = 0;
-static constexpr unsigned POINT_VERSION = 8;
+static constexpr unsigned MAJOR_VERSION = 1
+static constexpr unsigned MINOR_VERSION = 0
+static constexpr unsigned POINT_VERSION = 9
 
 } // namespace swoc
diff --git a/tools/update-version.sh b/tools/update-version.sh
new file mode 100644
index 0000000..2413f8d
--- /dev/null
+++ b/tools/update-version.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+if [ -z "$3" ] ; then
+  echo "Usage: $0 major minor point"
+  exit 1
+fi
+
+# Header
+sed -i swoc++/include/swoc/swoc_version.h --expr "s/\(MAJOR_VERSION *= 
*\).*\$/\\1$1/"
+sed -i swoc++/include/swoc/swoc_version.h --expr "s/\(MINOR_VERSION *= 
*\).*\$/\\1$2/"
+sed -i swoc++/include/swoc/swoc_version.h --expr "s/\(POINT_VERSION *= 
*\).*\$/\\1$3/"
+
+sed -i doc/conf.py --expr "s/release = .*\$/release = \"$1.$2.$3\"/"
+sed -i doc/Doxyfile --expr "s/\(PROJECT_NUMBER *= *\).*\$/\\1\"$1.$2.$3\"/"
+
+sed -i swoc++/CMakeLists.txt --expr "s/\(LIBSWOC_VERSION 
*\)\"[^\"]*\"/\\1\"$1.$2.$3\"/"

Reply via email to