From 525cb11c223e9d3d38c8bbb41386fd458357576c Mon Sep 17 00:00:00 2001 From: Takayuki MATSUOKA Date: Wed, 30 Jul 2014 18:41:45 +0900 Subject: Fix BSD sed error reported by Yue Du This change is related to LZ4 issue #14. - Add more unique pattern to line recognition - Change Extended Regular Expression to Basic Regular Expression --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c231652..23251e0 100644 --- a/Makefile +++ b/Makefile @@ -33,9 +33,9 @@ # Version numbers VERSION=121 export RELEASE=r$(VERSION) -LIBVER_MAJOR=`sed -n '/LZ4_VERSION_MAJOR/s/.*\s\+\([0-9]\+\).*/\1/p' < lz4.h` -LIBVER_MINOR=`sed -n '/LZ4_VERSION_MINOR/s/.*\s\+\([0-9]\+\).*/\1/p' < lz4.h` -LIBVER_PATCH=`sed -n '/LZ4_VERSION_RELEASE/s/.*\s\+\([0-9]\+\).*/\1/p' < lz4.h` +LIBVER_MAJOR=`sed -n '/define LZ4_VERSION_MAJOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < lz4.h` +LIBVER_MINOR=`sed -n '/define LZ4_VERSION_MINOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < lz4.h` +LIBVER_PATCH=`sed -n '/define LZ4_VERSION_RELEASE/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < lz4.h` LIBVER=$(LIBVER_MAJOR).$(LIBVER_MINOR).$(LIBVER_PATCH) DESTDIR= -- cgit v0.12