view tool_dependencies.xml @ 0:84f5e02c76f3 draft default tip

Uploaded
author qfab
date Wed, 21 May 2014 03:30:16 -0400
parents
children
line wrap: on
line source

<?xml version="1.0.1"?>
<tool_dependency>
<package name="overlapSelect" version="latest">
	<install version="1.0">
	<actions>
	<action type="shell_command">
		mkdir $INSTALL_DIR/bin;
		mkdir overlapSelect;

		if [[ "$(uname -m)" = "x86_64" ]] ; then
		if [[ "$(uname)" = "Linux" ]] ; then
		echo "We are in first"
		wget -nH --cut-dirs=3 -O overlapSelect/overlapSelect http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/overlapSelect
		fi
		if [[ "$(uname)" = "Darwin" ]]; then
		echo "We are in second"
		wget -nH --cut-dirs=3 -O overlapSelect/overlapSelect overlapSelect/ http://hgdownload.cse.ucsc.edu/admin/exe/macOSX.x86_64/overlapSelect
		fi
		fi
		if [[ "$(uname -m)" = "i386" ]] ; then
		if [[ "$(uname)" = "Darwin" ]]; then
		echo "We are in third"
		wget -nH --cut-dirs=3 -O overlapSelect/overlapSelect http://hgdownload.cse.ucsc.edu/admin/exe/macOSX.i386/overlapSelect
		fi
		fi

                chmod u+x overlapSelect/overlapSelect;
	</action>
        <action type="move_file">
	        <source>overlapSelect</source>
		<destination>$INSTALL_DIR/bin</destination>
	</action>
        <action type="set_environment">
 	       <environment_variable name="PATH" action="prepend_to">$INSTALL_DIR/bin</environment_variable>
	</action>
	</actions>
	</install>
	<readme>
	The Tool dependencies script download the executable tool available at http://hgdownload.cse.ucsc.edu/admin/exe/ . 
	The script tests if the Operationg sytem is either Mac or Linux.
	Compiling the source for this tool from implies the installation of mysql-dev libraries. 
	</readme>
</package>
</tool_dependency>