diff --git a/boost/network/version.hpp b/boost/network/version.hpp index 6b870bfec..14d6770ff 100644 --- a/boost/network/version.hpp +++ b/boost/network/version.hpp @@ -11,7 +11,7 @@ #define BOOST_NETLIB_VERSION_MAJOR 0 #define BOOST_NETLIB_VERSION_MINOR 11 -#define BOOST_NETLIB_VERSION_INCREMENT 1 +#define BOOST_NETLIB_VERSION_INCREMENT 2 #ifndef BOOST_NETLIB_VERSION #define BOOST_NETLIB_VERSION \ diff --git a/package.sh b/package.sh index fbc517ea4..4f2abda9b 100755 --- a/package.sh +++ b/package.sh @@ -12,6 +12,27 @@ if [ "$VERSION" == "" ]; then VERSION="`git log --format=oneline | awk '{print $1}' | head -1`" fi +# Break down the version in form "M.m.p" into individual variables. +BOOST_NETLIB_VERSION_MAJOR=`echo $VERSION | sed 's/[\._\-]/ /g' | awk '{print $1}'` +BOOST_NETLIB_VERSION_MINOR=`echo $VERSION | sed 's/[\._\-]/ /g' | awk '{print $2}'` +BOOST_NETLIB_VERSION_INCREMENT=`echo $VERSION | sed 's/[\._\-]/ /g' | awk '{print $3}'` + +echo $BOOST_NETLIB_VERSION_MAJOR +echo $BOOST_NETLIB_VERSION_MINOR +echo $BOOST_NETLIB_VERSION_INCREMENT + +# Then update the version. +sed -i '' 's/BOOST_NETLIB_VERSION_MAJOR [0-9]*/BOOST_NETLIB_VERSION_MAJOR '$BOOST_NETLIB_VERSION_MAJOR'/g' boost/network/version.hpp +sed -i '' 's/BOOST_NETLIB_VERSION_MINOR [0-9]*/BOOST_NETLIB_VERSION_MINOR '$BOOST_NETLIB_VERSION_MINOR'/g' boost/network/version.hpp +sed -i '' 's/BOOST_NETLIB_VERSION_INCREMENT [0-9]*/BOOST_NETLIB_VERSION_INCREMENT '$BOOST_NETLIB_VERSION_INCREMENT'/g' boost/network/version.hpp + +# Show the diff +git diff boost/network/version.hpp + +# Commit the change +git add boost/network/version.hpp +git commit -m"Bumping release number to $VERSION" + TAG="cpp-netlib-$VERSION" git tag $TAG echo "Tagged $TAG."