On 05 Jun 2005, you wrote in lfs.support: > On Sat, 4 Jun 2005, Matthew Burgess wrote: > >> >> Ken, FWIW my scripts do the following to avoid scanning paths that won't >> (or shouldn't!) see any changes during a build: >> >> find . -xdev ! -path "./logs/*" ! -path "./home/*" ! -path "./proc/*" \ >> ! -path "./sources/*" ! -path "./tmp/*" ! -path "./dev/*" \ >> ! -path "./var/log/*" ! -path "./srv/*" \ >> -newer timestamp >> > > Cool. I've always found the findutils info pages a bit hard to > navigate, thanks for the example. Should save a bit of run time too. > > Ken
I use the following script fu, originally from a script developed by Gerard from .profile: PRUNEPATH="/sys /dev/pts /proc /root /home /tmp /tools /usr/src" PRUNEREGEX=`echo $PRUNEPATH | sed -e 's,^,\\\(^,' -e 's, ,$\\\)\\\| \\\(^,g' -e 's,$,$\\\),'` in build scripts: touch /tmp/.timestamp <build instructions> echo "<package name>" >> /tmp/packages.log find / -regex "$PRUNEREGEX" -prune -o -cnewer /tmp/.timestamp -type f >> /tmp/packages.log - -- Steve Crosby -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
