From 8dcce8f68512fca460b171bccc3a5afce0048779 Mon Sep 17 00:00:00 2001 From: Michael Barker Date: Fri, 28 Apr 2023 14:13:15 +1200 Subject: [PATCH] Update license. Update version. --- include/hdr/hdr_histogram_version.h | 2 +- tools/update-version.sh | 30 ----------------------------- 2 files changed, 1 insertion(+), 31 deletions(-) delete mode 100755 tools/update-version.sh diff --git a/include/hdr/hdr_histogram_version.h b/include/hdr/hdr_histogram_version.h index b9537eb..a9a4300 100644 --- a/include/hdr/hdr_histogram_version.h +++ b/include/hdr/hdr_histogram_version.h @@ -7,6 +7,6 @@ #ifndef HDR_HISTOGRAM_VERSION_H #define HDR_HISTOGRAM_VERSION_H -#define HDR_HISTOGRAM_VERSION "0.11.7" +#define HDR_HISTOGRAM_VERSION "0.11.8" #endif // HDR_HISTOGRAM_VERSION_H diff --git a/tools/update-version.sh b/tools/update-version.sh deleted file mode 100755 index 9c563ed..0000000 --- a/tools/update-version.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh -set -e -# Shell script to update HDR_HISTOGRAM_VERSION_H to a specific version - -BASE_DIR=$(cd "$(dirname "$0")/.." && pwd) -HDR_DIR="$BASE_DIR/include/hdr" -HDR_HISTOGRAM_VERSION_H=$HDR_DIR/hdr_histogram_version.h -NEW_VERSION=$1 - -if [ "$#" -le 0 ]; then - echo "Error: please provide a version to update to" - exit 1 -fi - -CURRENT_VERSION=$(grep "#define HDR_HISTOGRAM_VERSION_H" $HDR_HISTOGRAM_VERSION_H | sed -n "s/^.*VERSION_H \"\(.*\)\"/\1/p") - -echo "Comparing $NEW_VERSION with $CURRENT_VERSION" - -if [ "$NEW_VERSION" = "$CURRENT_VERSION" ]; then - echo "Skipped because is already on the latest version." - exit 0 -fi - -echo "Replacing $CURRENT_VERSION with new version $NEW_VERSION" - -sed -i '' -e "s/#define HDR_HISTOGRAM_VERSION_H \"$CURRENT_VERSION\"/#define HDR_HISTOGRAM_VERSION_H \"$NEW_VERSION\"/g" $HDR_HISTOGRAM_VERSION_H - -echo "All done!" - -echo "NEW_VERSION=$NEW_VERSION"