From 6ee8f6096d8df44e5a0c579a1b4fc682af6ba419 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Thu, 19 Apr 2012 13:21:00 +0000 Subject: [PATCH] Merge 4 regular expressions into a single one, this is faster. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6046 7894878c-1315-0410-8ee3-d5d059ff63e0 --- lib/Module.mk | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/Module.mk b/lib/Module.mk index fdf35a9d..a8437a5e 100644 --- a/lib/Module.mk +++ b/lib/Module.mk @@ -144,10 +144,7 @@ endif echo ' Run the following command: rm /usr/lib/$(LIBSHBASENAME)*' ; \ echo '******************************************************************************' ; \ fi ; \ - cat /etc/ld.so.conf /etc/ld.so.conf.d/*.conf 2>/dev/null | grep -q '^$(LIBDIR)$$' || \ - cat /etc/ld.so.conf /etc/ld.so.conf.d/*.conf 2>/dev/null | grep -q '^$(LIBDIR)[[:space:]:,=]' || \ - cat /etc/ld.so.conf /etc/ld.so.conf.d/*.conf 2>/dev/null | grep -q '[[:space:]:,]$(LIBDIR)$$' || \ - cat /etc/ld.so.conf /etc/ld.so.conf.d/*.conf 2>/dev/null | grep -q '[[:space:]:,]$(LIBDIR)[[:space:]:,=]' || \ + cat /etc/ld.so.conf /etc/ld.so.conf.d/*.conf 2>/dev/null | grep -q '\(^\|[[:space:]:,]\)$(LIBDIR)\([[:space:]:,=]\|$$\)' || \ ( echo '******************************************************************************' ; \ echo 'Warning: Library directory $(LIBDIR) is not in /etc/ld.so.conf!' ; \ echo ' Add it and run /sbin/ldconfig for the userspace tools to work.' ; \