aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cleaner.rb
AgeCommit message (Collapse)Author
2016-09-23Fix Style/GuardClause.Markus Reiter
2016-07-31cleaner: kill unnecessary perl elementsDominyk Tiller
We shouldn't be packaging either `perllocal.pod` or `.packlist` files. Both are only really useful outside of package management. They get automatically generated whenever you install a Perl module. Debian, Arch, MacPorts & others remove them and we should have been as well really; keeping them causes completely unnecessary conflicts between formulae.
2016-07-12cleaner: fix generic executable handling. (#498)Mike McQuaid
Don't unset things that are already set as executable for the generic path. OS X overrides this behaviour and detects if it's an MachO executable but there's no cross-OS generic equivalent so just fall back to whatever the build system has set.
2016-07-04cleaner: port to generic OS. (#447)Mike McQuaid
2015-08-18unnecessary calls to .select simplifiedBaptiste Fontaine
These are minor perf optimizations. Closes Homebrew/homebrew#43028. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-03More core files style updatesXu Cheng
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-09-26don't clean libexecAdam Vandenberg
2014-07-20improve commentAdam Vandenberg
2014-07-20use ObserverPathnameExtension to remove these filesAdam Vandenberg
2014-07-20add clarifying commentsAdam Vandenberg
2014-07-19fix commentAdam Vandenberg
2014-05-12inline this methodAdam Vandenberg
2014-02-25add more documentationAdam Vandenberg
2014-02-25fix incorrect commentAdam Vandenberg
2014-02-25remove charset.alias directlyAdam Vandenberg
2014-02-23Cleaner: do work in clean instead of constructorAdam Vandenberg
2014-02-23Always keep info filesAdam Vandenberg
Closes Homebrew/homebrew#26659.
2013-12-22cleaner: use ObserverPathnameExtensionJack Nagel
2013-12-22cleaner: reorganize clean_dir to avoid repeated conditionalJack Nagel
2013-12-21cleaner: clean up broken and orphaned symlinksJack Nagel
2013-12-21cleaner: fix permission debug outputJack Nagel
2013-08-28cleaner: don't change permissions on paths marked skip_cleanJack Nagel
2013-08-08cleaner: traverse directories in postorderJack Nagel
2013-06-23Clean the cleanerAdam Vandenberg
* Fix a comment; we pass in formulae not names * Don't pass the formula to factory; this is just a pass-through * Move require to top-level
2013-03-18cleaner: simplify verbose pathname extensionJack Nagel
2013-02-10Show permission changes in debug modeAdam Vandenberg
2013-01-08Cleaner: allow non-empty paths to be pruned from cleaningAdam Vandenberg
2012-10-24Cleaner: add (commented-out) debugging information for permission changesAdam Vandenberg
The cleaning step changes permissions on files. Added a commented-out block that will show permission changes when doing verbose builds. Since this output is not generally useful for even normal verbose builds, added as commented-out code (I'm sorry) so that maintainers can uncomment it when this functionality is needed for debugging.
2012-09-18If we delete stuff in the clean step, make fussMax Howell
/cc @jwheare
2012-07-05Stop stripping binary filesAdam Vandenberg
2012-06-24Core change: XCode only install, with CLT or bothsamueljohn
Allow XCode without the Command Line Tools to work with homebrew, so it's not necessary to register an Apple Dev ID and/or go to the XCode prefs and download the CLT. Yay! Further, this commit allows to use the CLT solely (without the need for XCode). Saves quite some megs. (Some furmulae require xcodebuild) Of course XCode together with the CLT is still fine and has been tested on 10.7 and 10.6 with Xcode 4 and Xcode 3. Only on Lion or above, tell the user about the options, which are - Xcode without CLT - CLT without Xcode - both (ok, it's not directly stated, but implicit) So if no Xcode is found and we are on Lion or above, we don't fail but check for the CLTs now. For older Macs, the old message that Xcode is needed and the installer should be run is still displayed. If the CLT are not found but Xcode is, then we print out about the experimental status of this setup. Closes Homebrew/homebrew#10510. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-05-30cleaner: use new Mach-O pathname methods in clean_fileJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-09Restore cleaning of lib/charset.aliasJack Nagel
Even though we now prevent linking of this file into the prefix in Keg#link, its presence still triggers a "non-lib in lib" warning during installation. So keep cleaning it, and leave the check in Keg#link so things that skip_clean 'lib' still won't have it linked. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-04keg: allow selective linking at the file levelJack Nagel
Some parts of a keg's tree are not subject to the cleaner, and sometimes we still want to remove things in directories marked skip_clean; this allows us that freedom. If 'lib' is marked skip_clean, we still want to avoid linking the charset.alias file into the top of the tree. The same needs to be done for the locale.alias file in share/locale. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-19cleaner: remove lib/charset.alias filesJack Nagel
This file is installed by a number of packages, but it really shouldn't be. It is meant to be updated by packages that use it, but this is broken (1) by software that doesn't do this correctly and (2) by the symlink being overwritten by Homebrew's linking code. It's presence can cause issues with tools that use libiconv/gettext. Instead let's follow MacPorts' example and just remove it during the clean stage. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-01keg: handle the info directory file properlyNicolas Despres
If HOMEBREW_KEEP_INFO environment variable is set: - Do not symlink the info directory file (aka 'share/info/dir') otherwise it gets overwritten by next installed brew. - Install an entry in the directory for each linked info file when the brew is linked. - Uninstall the entry when the brew is unlinked. Closes Homebrew/homebrew#9700. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-06cleaner: correctly obey HOMEBREW_KEEP_INFOJack Nagel
The advertised default is that anything in share/info is removed unless the user sets HOMEBREW_KEEP_INFO, but we've actually been installing the files *unless* the variable is set. To illustrate: $ unset HOMEBREW_KEEP_INFO $ brew install -v wdiff [...] ln /usr/local/share/locale/af/LC_MESSAGES/wdiff-gnulib.mo ln /usr/local/share/info/wdiff.info ln /usr/local/share/info/dir ==> Summary [...] $ HOMEBREW_KEEP_INFO=1 brew install -v wdiff ln /usr/local/share/locale/af/LC_MESSAGES/wdiff-gnulib.mo ==> Summary [...] Obviously not what we wanted. Closes Homebrew/homebrew#7989. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-01Be future proof, output from file becomes more verboseMax Howell
New versions of file return `script, ASCII text executable`. Apple may ship the newer version with 10.8 so we may as well be ready for it.
2011-09-01Use fullpaths to file and stripMax Howell
Fixes Homebrew/homebrew#7353.
2011-03-12Some CleanupMax Howell
2011-03-12Refactor the brew command into one file per commandMax Howell
The code was sucking. To the extent that maintenance was hard. It's a lot easier to work with code that is sensibly split at sensible boundaries. So now it is more like that. But the refactor is minimal. Because we don't want you to have more merge hell than absolutely necessary. If you merge you will need to pay attention to brew.h.rb (as it is deleted) and bin/brew (as command logic is gone). It will be painful, but you will just have to help git out by moving any changes around manually. Note compatibility.rb. It ensures that any function renames or removals don't break anything. We're pretty serious about backwards compatibility. And that's because we encourage you to hack around with the innards. And we couldn't do that if we would then just make stuff disappear behind your back.
2010-08-21HOMEBREW_KEEP_INFO to keep info pagesAdam Vandenberg
2010-08-21use f.infoAdam Vandenberg
2010-08-21Move cleaner to separate fileAdam Vandenberg