aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/pathname.rb
AgeCommit message (Collapse)Author
2014-03-27Fix overly defensive handling of src parameter in make_relative_symlinkJack Nagel
This method is for internal use only. It is unsuitable for use in formulae, which should use install_symlink to create relative symlinks. Thus callers are required to pass a Pathname, not a string, and we can remove this conditional. Further, if src is not absolute, then src.relative_path_from(dirname) will fail. All callers currently pass absolute pathnames. Therefore we don't need to call expand_path when printing it.
2014-03-27Don't let broken symlinks halt linkingJack Nagel
2014-03-27Fix conflicting symlink adviceJack Nagel
Closes Homebrew/homebrew#27899.
2014-03-26Fall back to Process.gid if we aren't a member of the file's groupJack Nagel
2014-03-26Put tempfile into binmode before writingJack Nagel
2014-03-22Preserve permissions when using Pathname#atomic_writeJack Nagel
2014-03-19Expand paths before making relative symlinkJack Nagel
Fixes Homebrew/homebrew#27702. Fixes Homebrew/homebrew#27704.
2014-03-18Make relative symlinks in Pathname#install_symlinkJack Nagel
Closes Homebrew/homebrew#27672.
2014-02-18Inline static exception text to remove a rescueJack Nagel
2014-02-12Delete unused methodJack Nagel
2014-01-04Pathname: add methods to write env scripts.Mike McQuaid
2013-12-14Move Pathname#dynamically_linked_libraries to mach moduleJack Nagel
2013-12-12monkey around for emacs' code highlighterAdam Vandenberg
The abv method has a construct that causes emacs to not highlight the rest of pathname.rb, so move abv lower in the file. Sorry.
2013-12-12+x wrapper scripts, so they work during post-installAdam Vandenberg
2013-11-29support .lz archivesAdam Vandenberg
Closes Homebrew/homebrew#24775.
2013-11-14Recognized .pax.gz extensionJack Nagel
2013-10-14Pathname: removed unused method aliasJack Nagel
2013-10-10Pathname: add cp_path_sub method.Mike McQuaid
This method allows copying a file to a new location by performing a substitution on the pathname.
2013-10-10InstallRenamed: don't overwrite etc files; rename.Mike McQuaid
If an etc file exists on installation instead of overwriting it (or requiring all the manual checks in formula) simply copy it with the extension `.default` appended.
2013-10-07Use MacOS.locate to find otoolJack Nagel
Fixes Homebrew/homebrew#23111.
2013-10-06Only track C++ stdlibs for C++ codeMisty De Meo
After a formula is built, scan all mach-o files for dynamic links to see if any of them point to a C++ stdlib (libc++ or libstdc++). If one of them is linked, record that information in the formula's tab. This replaces the old behaviour where all files were assumed to be C++ code, and stdlibs were always tracked regardless of whether they were actually linked against. This also modifies the way that tabs are written - now tabs are written with the stdlib field null, and values are only written if an stdlib is detected.
2013-09-17Allow partial installation of resourcesJack Nagel
2013-09-16Open files in binary mode where appropriateJack Nagel
2013-09-11Implement ResourcesAdam Vandenberg
Closes Homebrew/homebrew#20212.
2013-08-13pathname: remove unused return valuesAdam Vandenberg
Return value was used only by one test, rewrote test to know expected value.
2013-08-13Improve checksum perf by providing an output bufferJack Nagel
2013-08-10Make usage of ObserverPathnameExtension more obviousJack Nagel
Remove use of globals. Closes Homebrew/homebrew#21795.
2013-07-22Pathname#write: don't check ARGV.force?Jack Nagel
Closes Homebrew/homebrew#21390.
2013-07-22typoPhil Smith
Closes Homebrew/homebrew#21385. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-07-13Handle NULs in link targets in Pathname#resolved_path_exists?Jack Nagel
Fixes Homebrew/homebrew#19475. Fixes Homebrew/homebrew#21184.
2013-07-06Don't use install_p directlyJack Nagel
2013-06-20Splatted parameter is always an arrayJack Nagel
2013-06-09Remove adamv-alt references.Adam Vandenberg
Closes Homebrew/homebrew#20364.
2013-06-08Sniff for non-tarred gzipsAdam Vandenberg
Don't try to untar non-tarred gzips.
2013-05-09Overwrite broken symlinks with --overwriteDesmond Brand
Closes Homebrew/homebrew#19480. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2013-04-27Only remove DS_Store on ENOTEMPTYJack Nagel
2013-04-20Avoid calling to_s on the same Pathname multiple timesJack Nagel
2013-04-14Performance fix for Pathname#prepend_prefixJack Nagel
See 05a456c231dc6da7cb0f7c70cb21feaf9a0d803c; same story.
2013-04-14Performance fix for Pathname#chop_basenameJack Nagel
This is an internal method, but is called a bunch of times in performance-critical codepaths, and is ultra slow because the constant is interpoplated into the Regexp each time the method is called. Alas, this has been fixed in Ruby 1.9+.
2013-04-03Recognize 7z files by magic bytes, not filenameJack Nagel
2013-03-09Adjust BOTTLE_EXTNAME_RX for :snow_leopard_32Jack Nagel
2013-02-10Fix Regexp encoding under 1.9/2.0Jack Nagel
2013-01-30Remove MD5 support.Mike McQuaid
Closes Homebrew/homebrew#17317.
2013-01-29Don't use underscores in (new) bottle filenames.Mike McQuaid
Closes Homebrew/homebrew#14270
2013-01-29Cleanup old bottle syntax.Mike McQuaid
2012-12-11pathname.rb: Pass -s to du instead of -d0Shaun Jackman
The option `du -s` is equivalent to `du -d0`. The former is a POSIX standard (IEEE Std 1003.1-2008), whereas the latter is a BSD extension. From the BSD man page: `-s Display an entry for each specified file. (Equivalent to -d 0)` From SUSv4: `-s Instead of the default output, report only the total sum for each of the specified files.` http://pubs.opengroup.org/onlinepubs/9699919799/utilities/du.html Closes Homebrew/homebrew#16516. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-11-25Rewrite plists when installing from a bottleJack Nagel
2012-11-25Overwrite plists.Mike McQuaid
2012-11-14Try to remove a single .DS_Store when uninstallingAdam Vandenberg
Closes Homebrew/homebrew#12976. Closes Homebrew/homebrew#15975.
2012-11-12Don't error out if metafiles are linkedAdam Vandenberg
Closes Homebrew/homebrew#16008.