summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTakayuki MATSUOKA <takayuki.matsuoka@gmail.com>2014-07-30 09:41:45 (GMT)
committerTakayuki MATSUOKA <takayuki.matsuoka@gmail.com>2014-07-30 09:41:45 (GMT)
commit525cb11c223e9d3d38c8bbb41386fd458357576c (patch)
treeae8f443b2873aa44c45b58b41829b99028a68503 /Makefile
parente4aaa681ca07415cf12657bc1a3cd05c10afeed9 (diff)
downloadlz4-525cb11c223e9d3d38c8bbb41386fd458357576c.zip
lz4-525cb11c223e9d3d38c8bbb41386fd458357576c.tar.gz
lz4-525cb11c223e9d3d38c8bbb41386fd458357576c.tar.bz2
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files 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=