Bill Bumgarner wrote: > I just noticed that my /sw/src directory is up to 1.9gb and a lot fo > this is due to many versions of the same package and a number of > orphaned directories that were in mid compilation. > > After a bit of research, I found no obvious answer to this question: > Is there something that can be used to automatically purge the /sw/src/ > directory of anything that isn't the current version and any orphaned > build directories?
I found the easiest way to do this is to use emacs in dired mode. You can use OSX's /usr/bin/emacs: sudo /usr/bin/emacs /sw/src It goes into dired mode automatically. You go down the list of files and directories, you flag the files you want to get rid of by hitting "d" and the directories hitting "m". After the selection, you hit "x" to delete the files and "!" then "rm -rf" to delete the directories. Takes you less than 5 minutes even for a very populated and long neglected /sw/src directory. -- Martin ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek We have stuff for geeks like you. http://thinkgeek.com/sf _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users
