view util/install_linux_binaries @ 0:f493979f1408 draft default tip

planemo upload for repository https://github.com/Yating-L/hubarchivecreator-test commit 48b59e91e2dcc2e97735ee35d587960cbfbce932-dirty
author yating-l
date Wed, 21 Dec 2016 12:13:04 -0500
parents
children
line wrap: on
line source

#!/usr/bin/env bash

localBinPath="/usr/local/bin/"
hgDownloadURl="http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/"

# Binaries needed for HAC
twoBitInfo="twoBitInfo"
faToTwoBit="faToTwoBit"
gff3ToGenePred="gff3ToGenePred"
gtfToGenePred="gtfToGenePred"
genePredToBed="genePredToBed"
# sort="sort"
bedToBigBed="bedToBigBed"

binariesArray=( ${twoBitInfo} ${faToTwoBit} ${gff3ToGenePred} ${gtfToGenePred} ${genePredToBed} ${bedToBigBed} )

# Download and install binaries
for binaryName in "${binariesArray[@]}"
do
    binaryInstallationPath="${localBinPath}/${binaryName}"
    sudo wget -P ${localBinPath} "${hgDownloadURl}/${binaryName}"
    sudo chown ${USER} ${binaryInstallationPath}
    sudo chmod +x ${binaryInstallationPath}
done