|
0
|
1 <?xml version="1.0.1"?>
|
|
|
2 <tool_dependency>
|
|
|
3 <package name="overlapSelect" version="latest">
|
|
|
4 <install version="1.0">
|
|
|
5 <actions>
|
|
|
6 <action type="shell_command">
|
|
|
7 mkdir $INSTALL_DIR/bin;
|
|
|
8 mkdir overlapSelect;
|
|
|
9
|
|
|
10 if [[ "$(uname -m)" = "x86_64" ]] ; then
|
|
|
11 if [[ "$(uname)" = "Linux" ]] ; then
|
|
|
12 echo "We are in first"
|
|
|
13 wget -nH --cut-dirs=3 -O overlapSelect/overlapSelect http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/overlapSelect
|
|
|
14 fi
|
|
|
15 if [[ "$(uname)" = "Darwin" ]]; then
|
|
|
16 echo "We are in second"
|
|
|
17 wget -nH --cut-dirs=3 -O overlapSelect/overlapSelect overlapSelect/ http://hgdownload.cse.ucsc.edu/admin/exe/macOSX.x86_64/overlapSelect
|
|
|
18 fi
|
|
|
19 fi
|
|
|
20 if [[ "$(uname -m)" = "i386" ]] ; then
|
|
|
21 if [[ "$(uname)" = "Darwin" ]]; then
|
|
|
22 echo "We are in third"
|
|
|
23 wget -nH --cut-dirs=3 -O overlapSelect/overlapSelect http://hgdownload.cse.ucsc.edu/admin/exe/macOSX.i386/overlapSelect
|
|
|
24 fi
|
|
|
25 fi
|
|
|
26
|
|
|
27 chmod u+x overlapSelect/overlapSelect;
|
|
|
28 </action>
|
|
|
29 <action type="move_file">
|
|
|
30 <source>overlapSelect</source>
|
|
|
31 <destination>$INSTALL_DIR/bin</destination>
|
|
|
32 </action>
|
|
|
33 <action type="set_environment">
|
|
|
34 <environment_variable name="PATH" action="prepend_to">$INSTALL_DIR/bin</environment_variable>
|
|
|
35 </action>
|
|
|
36 </actions>
|
|
|
37 </install>
|
|
|
38 <readme>
|
|
|
39 The Tool dependencies script download the executable tool available at http://hgdownload.cse.ucsc.edu/admin/exe/ .
|
|
|
40 The script tests if the Operationg sytem is either Mac or Linux.
|
|
|
41 Compiling the source for this tool from implies the installation of mysql-dev libraries.
|
|
|
42 </readme>
|
|
|
43 </package>
|
|
|
44 </tool_dependency>
|