File: source_path

package info (click to toggle)
bio-tradis 1.4.5%2Bdfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 13,652 kB
  • sloc: perl: 4,312; xml: 1,731; sh: 123; makefile: 18
file content (22 lines) | stat: -rwxr-xr-x 494 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SMALT_VERSION="0.7.6"
BWA_VERSION="0.7.17"
TABIX_VERSION="master"
SAMTOOLS_VERSION="1.3"

smalt_dir=$(pwd)/"smalt-${SMALT_VERSION}-bin"
bwa_dir=$(pwd)/"bwa-${BWA_VERSION}"
tabix_dir=$(pwd)/"tabix-$TABIX_VERSION"
samtools_dir=$(pwd)/"samtools-$SAMTOOLS_VERSION"

update_path () {
  new_dir=$1
  if [[ ! "$PATH" =~ (^|:)"${new_dir}"(:|$) ]]; then
    export PATH=${new_dir}:${PATH}
  fi
}

update_path ${smalt_dir}
update_path ${bwa_dir}
update_path "${tabix_dir}"
update_path "${samtools_dir}"