From b7c1742fa82fc3295d2c43258e2b801f406aada3 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Thu, 27 Nov 2014 09:40:36 +0000 Subject: [PATCH] Filter out /lib, /usr/lib32, and fold the /usr/lib* checks into one expression --- tools/add-optional-obsolete-files-entries.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/add-optional-obsolete-files-entries.sh b/tools/add-optional-obsolete-files-entries.sh index 9eeab4e16681..8384b31a8ef4 100755 --- a/tools/add-optional-obsolete-files-entries.sh +++ b/tools/add-optional-obsolete-files-entries.sh @@ -52,6 +52,6 @@ done sed -e 's,^,OLD_FILES+=,' \ -e '/lib\/.*\.so\.[0-9]\.*/s/OLD_FILES+=/OLD_LIBS+=/g'; find -d -s . -type d -mindepth 1 -and \! -empty | \ - egrep -v '^\./(boot|s*bin|libexec|usr|usr/include|usr/lib(data)?|usr/libdata/pkgconfig|usr/lib/private|usr/libexec|usr/s*bin|usr/share|usr/share/(examples|man)|usr/share/man/man[0-9])$' | \ + egrep -v '^\./(boot|s*bin|lib|libexec|usr|usr/include|usr/lib(32|data|exec)?|usr/libdata/pkgconfig|usr/lib/private|usr/s*bin|usr/share|usr/share/(examples|man)|usr/share/man/man[0-9])$' | \ sed -e 's,^,OLD_DIRS+=,' ) | sed -e 's,+=\./,+=,'