Created
May 17, 2015 14:51
-
-
Save enil/c443ba6481fd9570bd9a to your computer and use it in GitHub Desktop.
Creates links for Ruby 2.2 without the prefix (not needed)
This file contains 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 | |
package=ruby22 | |
suffix=2.2 | |
for source in $(port contents $package | grep /opt/local/bin/); do | |
target=$(dirname $source)/$(basename $source $suffix) | |
ln -s $source $target | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment