diff options
author | Takayuki MATSUOKA <takayuki.matsuoka@gmail.com> | 2014-07-30 09:41:45 (GMT) |
---|---|---|
committer | Takayuki MATSUOKA <takayuki.matsuoka@gmail.com> | 2014-07-30 09:41:45 (GMT) |
commit | 525cb11c223e9d3d38c8bbb41386fd458357576c (patch) | |
tree | ae8f443b2873aa44c45b58b41829b99028a68503 /Makefile | |
parent | e4aaa681ca07415cf12657bc1a3cd05c10afeed9 (diff) | |
download | lz4-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-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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= |