Show
Ignore:
Timestamp:
04/19/12 15:21:00 (3 years ago)
Author:
khali
Message:

Merge 4 regular expressions into a single one, this is faster.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/lib/Module.mk

    r6045 r6046  
    145145             echo '******************************************************************************' ; \ 
    146146           fi ; \ 
    147            cat /etc/ld.so.conf /etc/ld.so.conf.d/*.conf 2>/dev/null | grep -q '^$(LIBDIR)$$' || \ 
    148            cat /etc/ld.so.conf /etc/ld.so.conf.d/*.conf 2>/dev/null | grep -q '^$(LIBDIR)[[:space:]:,=]' || \ 
    149            cat /etc/ld.so.conf /etc/ld.so.conf.d/*.conf 2>/dev/null | grep -q '[[:space:]:,]$(LIBDIR)$$' || \ 
    150            cat /etc/ld.so.conf /etc/ld.so.conf.d/*.conf 2>/dev/null | grep -q '[[:space:]:,]$(LIBDIR)[[:space:]:,=]' || \ 
     147           cat /etc/ld.so.conf /etc/ld.so.conf.d/*.conf 2>/dev/null | grep -q '\(^\|[[:space:]:,]\)$(LIBDIR)\([[:space:]:,=]\|$$\)' || \ 
    151148                ( echo '******************************************************************************' ; \ 
    152149                  echo 'Warning: Library directory $(LIBDIR) is not in /etc/ld.so.conf!' ; \