From: Willy Tarreau Date: Thu, 5 Jan 2017 18:58:24 +0000 (+0100) Subject: BUILD: scripts: automatically update the branch in version.h when releasing X-Git-Tag: v1.8-dev1~183 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=990397ed2e7673f14fc635f8764fe86f41bd4d71;p=thirdparty%2Fhaproxy.git BUILD: scripts: automatically update the branch in version.h when releasing The stats page proudly displays "Updates (v1.5)". This version is inherited from version.h which has not been updated since 1.5, so let's teach the create-release script about it. This must be backported to 1.7. 1.6 now uses the same script (externally) for the release and will automatically benefit from it. --- diff --git a/scripts/create-release b/scripts/create-release index 35688f0fb7..21649c97d1 100755 --- a/scripts/create-release +++ b/scripts/create-release @@ -192,6 +192,10 @@ echo "Updating haproxy.c ..." sed -e "s:Copyright 2000-[0-9]*\s*Willy Tarreau.*>:Copyright 2000-$YEAR Willy Tarreau :" \ -i src/haproxy.c +echo "Updating version.h ..." +sed -e "s:^\(#define\s*PRODUCT_BRANCH\s*\)\"[^\"]*\":\1\"$BRANCH\":" \ + -i include/common/version.h + if [ -n "$INTERACTIVE" ]; then vi CHANGELOG VERSION VERDATE examples/haproxy*.spec \ src/haproxy.c README doc/configuration.txt \