svn commit: r275141 - projects/building-blocks/tools
Garrett Cooper
ngie at FreeBSD.org
Wed Nov 26 21:17:33 UTC 2014
Author: ngie
Date: Wed Nov 26 21:17:32 2014
New Revision: 275141
URL: https://svnweb.freebsd.org/changeset/base/275141
Log:
- Handle OLD_LIBS properly by looking for versioned .so's
- Filter out /usr/libdata and /usr/libdata/pkgconfig from OLD_DIRS
Modified:
projects/building-blocks/tools/add-optional-obsolete-files-entries.sh
Modified: projects/building-blocks/tools/add-optional-obsolete-files-entries.sh
==============================================================================
--- projects/building-blocks/tools/add-optional-obsolete-files-entries.sh Wed Nov 26 20:56:08 2014 (r275140)
+++ projects/building-blocks/tools/add-optional-obsolete-files-entries.sh Wed Nov 26 21:17:32 2014 (r275141)
@@ -42,8 +42,10 @@ done
# Enumerate all of the installed files/directories
(cd $DESTDIR;
- find -s . -type f -mindepth 1 | sed -e 's,^,OLD_FILES+=,';
+ find -s . -type f -mindepth 1 | \
+ sed -e 's,^,OLD_FILES+=,' \
+ -e '/lib\/.*\.so\.[0-9]\.*/s/OLD_FILES+=/OLD_LIBS+=/g';
find -s . -type d -mindepth 1 -and \! -empty | \
- egrep -v '^\./(s*bin|libexec|usr|usr/include|usr/lib|usr/lib/private|usr/libexec|usr/s*bin|usr/share|usr/share/man|usr/share/man/man[0-9])$' | \
+ grep -v '^\./(s*bin|libexec|usr|usr/include|usr/lib(data)?|usr/libdata/pkgconfig|usr/lib/private|usr/libexec|usr/s*bin|usr/share(/(examples|man))?|usr/share/man/man[0-9])$' | \
sed -e 's,^,OLD_DIRS+=,'
) | sed -e 's,+=\./,+=,'
More information about the svn-src-projects
mailing list