Skip to content

Commit

Permalink
Fix version, version update script.
Browse files Browse the repository at this point in the history
  • Loading branch information
SolidWallOfCode committed Jan 28, 2020
1 parent 825568c commit e399a9e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions swoc++/include/swoc/swoc_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

namespace swoc
{
static constexpr unsigned MAJOR_VERSION = 1 static constexpr unsigned MINOR_VERSION = 0 static constexpr unsigned POINT_VERSION = 9

static constexpr unsigned MAJOR_VERSION = 1;
static constexpr unsigned MINOR_VERSION = 0;
static constexpr unsigned POINT_VERSION = 9;
} // namespace swoc
2 changes: 1 addition & 1 deletion swoc++/swoc++.part
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Import("*")
PartVersion("1.0.8")
PartVersion("1.0.9")
PartName("swoc++")

files = [
Expand Down
7 changes: 4 additions & 3 deletions tools/update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ if [ -z "$3" ] ; then
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 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\"/"
sed -i swoc++/swoc++.part --expr "s/PartVersion(\"[0-9.]*\")/PartVersion(\"$1.$2.$3\")/"

0 comments on commit e399a9e

Please sign in to comment.