diff util/install_linux_binaries @ 1:85195e0d4b71 draft

planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit b1ae7349f118a0fe7923d765020dfc684cf84116-dirty
author yating-l
date Fri, 29 Sep 2017 13:32:23 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/util/install_linux_binaries	Fri Sep 29 13:32:23 2017 -0400
@@ -0,0 +1,24 @@
+#!/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