diff options
author | Sam Ravnborg <sam@mars.ravnborg.org> | 2004-03-30 01:16:35 +0200 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2004-03-30 01:16:35 +0200 |
commit | bfb2cc51c7566aff23bddb6614411bf6cbeecf78 (patch) | |
tree | b705049f03608d0eea34b7df616312b43c289c8c /Makefile | |
parent | 2cd379f95ec824cbc91b407a84ce5677589d51ec (diff) | |
download | history-bfb2cc51c7566aff23bddb6614411bf6cbeecf78.tar.gz |
kbuild: Avoid "expr length" in Makefile
From: Martin Schaffner <maschaffner@gmx.ch>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile index fbdf0fe94fce2..d7cea0c6a648a 100644 --- a/Makefile +++ b/Makefile @@ -662,7 +662,7 @@ include/config/MARKER: include/linux/autoconf.h uts_len := 64 define filechk_version.h - if expr length "$(KERNELRELEASE)" \> $(uts_len) >/dev/null ; then \ + if ((`echo -n "$(KERNELRELEASE)" | wc -c ` > $(uts_len))); then \ echo '"$(KERNELRELEASE)" exceeds $(uts_len) characters' >&2; \ exit 1; \ fi; \ |