Created
September 29, 2011 02:55
-
-
Save ootput/1249880 to your computer and use it in GitHub Desktop.
Clean FreeBSD Ports' work directories
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # Search for ports that contain a "work" subdirectory, | |
| # then go into that port directory and perform a | |
| # make clean | |
| for i in `find /usr/ports -name work -type d` | |
| do | |
| cd `echo "$i" | sed 's/\/[^\/]*$/\//'` | |
| make clean | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment