brew
https://github.com/homebrew/brew
Ruby
🍺 The missing package manager for macOS
Cleaner#clean_dir
Clean a top-level (bin, sbin, lib) directory, recursively, by fixing file permissions and removing .la files, unless the files (or parent directories) are protected by skip_clean. bin and sbin should not have any subdirectories; if either do that is caught as an audit warning lib may have a large directory tree (see Erlang for instance), and clean_dir applies cleaning rules to the entire tree
Edit
git clone [email protected]:homebrew/brew.git
cd brew
open Library/Homebrew/cleaner.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Cleaner-clean_dir-for-pr
# Commit to gitgit add Library/Homebrew/cleaner.rbgit commit -m "better docs for Cleaner#clean_dir"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Cleaner-clean_dir-for-pr
hub pull-request
# Celebrate!