Sha256: f9cf0ef23a8427b08357c40d7823d3a60a9dcc1a287d448ed8839fd867cc3f86
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
#!/usr/bin/env bash # General tools for manipulating patches # and dealing with patches. # Returns the path used to look for a patch given a specific name. __rvm_patch_lookup_path() { echo "/" [[ -n "$rvm_patch_original_pwd" ]] && echo "$rvm_patch_original_pwd/" echo "$PWD/" __rvm_ruby_string_paths_under "$rvm_patches_path" | sed 's/$/\//' } __rvm_expand_patch_name() { [[ -z "$1" ]] && return expanded_patch_name="$("$rvm_scripts_path/patchsets" show "$1")" if [[ "$?" == "0" ]]; then echo "$expanded_patch_name" elif [[ "$1" != "default" ]]; then echo "$1" fi ; unset expanded_patch_name } # Return the full patch for a given patch. __rvm_lookup_full_patch_path() { # Absolute path, pwd and then finally the rvm patches path. for directory in $(__rvm_patch_lookup_path) ; do for extension in {"",.patch,.diff}; do patch_path="${directory}${1}${extension}" if [[ -s "$patch_path" ]]; then echo "$patch_path" return fi done; unset extension patch_path done; unset directory return 1 }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rvm-1.0.2 | scripts/patches |