Skip to content

Commit

Permalink
Update choose-dylan script to use $D if bound.
Browse files Browse the repository at this point in the history
  • Loading branch information
cgay committed Feb 27, 2016
1 parent fe9bb5d commit 7560937
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion choose-dylan
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
#!/bin/bash

d=/home/cgay/dylan
# Maintain a symbolic link to the current version of opendylan I'm using.
# This is convenient because I sometimes have multiple branches of opendylan
# plus the current released version.

# Usage: "choose-dylan master" to select the opendylan-master build
# Invoke with no arguments to see current link.

if [[ -n "$D" ]]; then
d=${D}
else
d=${HOME}/dylan
fi

if [[ $# != 1 ]]; then
readlink $d/opendylan
else
Expand Down

0 comments on commit 7560937

Please sign in to comment.