Debian Codegraph @

bbversion.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 usagescip-shell shell bbmap 39.20+dfsg-3 usage().(){
4 echoscip-shell system . . echo. "
5 Written by Brian Bushnell
6 Last modified May 4, 2017
7
8 Description: Prints the BBTools version number.
9 Add an argument to print the version name too.
10
11 Usage: bbversion.sh
12 "
13 }
14
15 pushd . > /dev/nullscip-shell filesystem . . `/dev/null`.
16 DIR="${BASH_SOURCE[0]}"
17 while [scip-shell system . . `[`. -h "$DIR" ]; do
18 cd "$(dirnamescip-shell system . . dirname. "$DIR")"
19 DIR="$(readlinkscip-shell system . . readlink. "$(basenamescip-shell system . . basename. "$DIR")")"
20 done
21 cd "$(dirnamescip-shell system . . dirname. "$DIR")"
22 DIR="$(pwdscip-shell system . . pwd.)/"
23 popd > /dev/nullscip-shell filesystem . . `/dev/null`.
24
25 CP="$DIR""current/"
26
27 bbversionscip-shell shell bbmap 39.20+dfsg-3 bbversion().() {
28 local CMD="java -Xmx80m -cp $CP driver.BBVersion $@"
29 eval $CMD
30 }
31
32 bbversionscip-shell shell bbmap 39.20+dfsg-3 bbversion(). "$@"