| 1 | #!/bin/bash |
| 2 | |
| 3 | #For more information, please see sketch.sh |
| 4 | #This exists for people who type bbsketch.sh instead of sketch.sh |
| 5 | #I haven't decided which one will be the canonical version. |
| 6 | |
| 7 | pushd . > /dev/null |
| 8 | DIR="${BASH_SOURCE[0]}" |
| 9 | while [ -h "$DIR" ]; do |
| 10 | cd "$(dirname "$DIR")" |
| 11 | DIR="$(readlink "$(basename "$DIR")")" |
| 12 | done |
| 13 | cd "$(dirname "$DIR")" |
| 14 | DIR="$(pwd)/" |
| 15 | popd > /dev/null |
| 16 | |
| 17 | #DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/" |
| 18 | |
| 19 | "$DIR"sketch.sh $@ |