X-Git-Url: https://git.tld-linux.org/?p=packages%2Frpm-tld-macros.git;a=blobdiff_plain;f=kmod-deps.sh;fp=kmod-deps.sh;h=c9bee5ed1490aa2682bb6e9cd8a51176beed3860;hp=a78598b41df9ab8d18bc48e4fcdd71097a6e6856;hb=cf003b2dfbe72b28f3fb8108f24290b760365f24;hpb=a8b462c1f839b0f67d81b5f94047e6e0f50c67d4 diff --git a/kmod-deps.sh b/kmod-deps.sh index a78598b..c9bee5e 100755 --- a/kmod-deps.sh +++ b/kmod-deps.sh @@ -3,7 +3,7 @@ # Kernel module dependency extractor. # # Author(s): Danny Tholen -# Olivier Blin +# Olivier Blin # Per Øyvind Karlsen # @@ -34,7 +34,7 @@ fi if [ $provides -eq 1 ]; then provideslist=`sed "s/['\"]/\\\&/g"` - modulelist=$(echo "$provideslist" | egrep '^.*(/lib/modules/|/var/lib/dkms/).*\.ko(\.gz|\.xz)?$') + modulelist=$(echo "$provideslist" | grep -E '^.*(/lib/modules/|/var/lib/dkms/).*\.ko(\.gz|\.xz)?$') echo $modulelist | xargs -r $modinfo | \ perl -lne ' $name = $1 if m!^filename:\s*(?:.*/)?([^/]+)\.k?o!; @@ -45,7 +45,7 @@ if [ $provides -eq 1 ]; then undef $name; undef $ver; } ' - dkmslist=$(echo "$provideslist" | egrep '(/var/lib/dkms-binary/[^/]+/[^/]+|/usr/src)/[^/]+/dkms.conf$') + dkmslist=$(echo "$provideslist" | grep -E '(/var/lib/dkms-binary/[^/]+/[^/]+|/usr/src)/[^/]+/dkms.conf$') [ -n "$dkmslist" ] && for d in $dkmslist; do VERSION=`sed -rne 's/^PACKAGE_VERSION="?([^"]+)"?$/\1/;T;p' $d` [ -z "$VERSION" ] && continue