comparison util/install_linux_binaries @ 0:abcfd662b679 draft default tip

planemo upload for repository https://github.com/Yating-L/hubarchivecreator-test.git commit 199ae2b10f3b3e58cb4d4a3b9fb4b35db415c538-dirty
author yating-l
date Thu, 22 Dec 2016 17:53:00 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:abcfd662b679
1 #!/usr/bin/env bash
2
3 localBinPath="/usr/local/bin/"
4 hgDownloadURl="http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/"
5
6 # Binaries needed for HAC
7 twoBitInfo="twoBitInfo"
8 faToTwoBit="faToTwoBit"
9 gff3ToGenePred="gff3ToGenePred"
10 gtfToGenePred="gtfToGenePred"
11 genePredToBed="genePredToBed"
12 # sort="sort"
13 bedToBigBed="bedToBigBed"
14
15 binariesArray=( ${twoBitInfo} ${faToTwoBit} ${gff3ToGenePred} ${gtfToGenePred} ${genePredToBed} ${bedToBigBed} )
16
17 # Download and install binaries
18 for binaryName in "${binariesArray[@]}"
19 do
20 binaryInstallationPath="${localBinPath}/${binaryName}"
21 sudo wget -P ${localBinPath} "${hgDownloadURl}/${binaryName}"
22 sudo chown ${USER} ${binaryInstallationPath}
23 sudo chmod +x ${binaryInstallationPath}
24 done