svn commit: r275145 - projects/building-blocks/tools
Garrett Cooper
ngie at FreeBSD.org
Wed Nov 26 22:26:23 UTC 2014
Author: ngie
Date: Wed Nov 26 22:26:22 2014
New Revision: 275145
URL: https://svnweb.freebsd.org/changeset/base/275145
Log:
- Fix egrep -> grep typo introduced in previous commit
- Do depth-first search on OLD_DIRS so the list is logically sorted
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 21:53:53 2014 (r275144)
+++ projects/building-blocks/tools/add-optional-obsolete-files-entries.sh Wed Nov 26 22:26:22 2014 (r275145)
@@ -45,7 +45,7 @@ done
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 | \
- 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])$' | \
+ find -d -s . -type d -mindepth 1 -and \! -empty | \
+ egrep -v '^\./(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])$' | \
sed -e 's,^,OLD_DIRS+=,'
) | sed -e 's,+=\./,+=,'
More information about the svn-src-projects
mailing list