Mercurial > repos > rliterman > csp2
annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/opt/bbmap-39.01-1/bbrename.sh @ 69:33d812a61356
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 17:55:14 -0400 |
parents | |
children |
rev | line source |
---|---|
jpayne@69 | 1 #!/bin/bash |
jpayne@69 | 2 |
jpayne@69 | 3 #For more information, please see rename.sh |
jpayne@69 | 4 #This exists for people who type bbrename.sh instead of rename.sh |
jpayne@69 | 5 |
jpayne@69 | 6 pushd . > /dev/null |
jpayne@69 | 7 DIR="${BASH_SOURCE[0]}" |
jpayne@69 | 8 while [ -h "$DIR" ]; do |
jpayne@69 | 9 cd "$(dirname "$DIR")" |
jpayne@69 | 10 DIR="$(readlink "$(basename "$DIR")")" |
jpayne@69 | 11 done |
jpayne@69 | 12 cd "$(dirname "$DIR")" |
jpayne@69 | 13 DIR="$(pwd)/" |
jpayne@69 | 14 popd > /dev/null |
jpayne@69 | 15 |
jpayne@69 | 16 #DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/" |
jpayne@69 | 17 |
jpayne@69 | 18 "$DIR"rename.sh $@ |