Mercurial > repos > yating-l > hubarchivecreator
annotate util/install_linux_binaries @ 24:671d302afbb0 draft
planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit e42ecb807fb34a8e4ddcf96944dd74d24c695352-dirty
| author | yating-l | 
|---|---|
| date | Thu, 29 Dec 2016 17:16:08 -0500 | 
| parents | 3e0c61b52a06 | 
| children | 
| rev | line source | 
|---|---|
| 0 
3e0c61b52a06
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
 yating-l parents: diff
changeset | 1 #!/usr/bin/env bash | 
| 
3e0c61b52a06
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
 yating-l parents: diff
changeset | 2 | 
| 
3e0c61b52a06
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
 yating-l parents: diff
changeset | 3 localBinPath="/usr/local/bin/" | 
| 
3e0c61b52a06
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
 yating-l parents: diff
changeset | 4 hgDownloadURl="http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/" | 
| 
3e0c61b52a06
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
 yating-l parents: diff
changeset | 5 | 
| 
3e0c61b52a06
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
 yating-l parents: diff
changeset | 6 # Binaries needed for HAC | 
| 
3e0c61b52a06
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
 yating-l parents: diff
changeset | 7 twoBitInfo="twoBitInfo" | 
| 
3e0c61b52a06
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
 yating-l parents: diff
changeset | 8 faToTwoBit="faToTwoBit" | 
| 
3e0c61b52a06
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
 yating-l parents: diff
changeset | 9 gff3ToGenePred="gff3ToGenePred" | 
| 
3e0c61b52a06
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
 yating-l parents: diff
changeset | 10 gtfToGenePred="gtfToGenePred" | 
| 
3e0c61b52a06
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
 yating-l parents: diff
changeset | 11 genePredToBed="genePredToBed" | 
| 
3e0c61b52a06
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
 yating-l parents: diff
changeset | 12 # sort="sort" | 
| 
3e0c61b52a06
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
 yating-l parents: diff
changeset | 13 bedToBigBed="bedToBigBed" | 
| 
3e0c61b52a06
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
 yating-l parents: diff
changeset | 14 | 
| 
3e0c61b52a06
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
 yating-l parents: diff
changeset | 15 binariesArray=( ${twoBitInfo} ${faToTwoBit} ${gff3ToGenePred} ${gtfToGenePred} ${genePredToBed} ${bedToBigBed} ) | 
| 
3e0c61b52a06
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
 yating-l parents: diff
changeset | 16 | 
| 
3e0c61b52a06
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
 yating-l parents: diff
changeset | 17 # Download and install binaries | 
| 
3e0c61b52a06
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
 yating-l parents: diff
changeset | 18 for binaryName in "${binariesArray[@]}" | 
| 
3e0c61b52a06
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
 yating-l parents: diff
changeset | 19 do | 
| 
3e0c61b52a06
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
 yating-l parents: diff
changeset | 20 binaryInstallationPath="${localBinPath}/${binaryName}" | 
| 
3e0c61b52a06
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
 yating-l parents: diff
changeset | 21 sudo wget -P ${localBinPath} "${hgDownloadURl}/${binaryName}" | 
| 
3e0c61b52a06
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
 yating-l parents: diff
changeset | 22 sudo chown ${USER} ${binaryInstallationPath} | 
| 
3e0c61b52a06
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
 yating-l parents: diff
changeset | 23 sudo chmod +x ${binaryInstallationPath} | 
| 
3e0c61b52a06
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
 yating-l parents: diff
changeset | 24 done | 
