Project

General

Profile

genemarks.sh

GeneMarkS installation script - Fanie Riekert, 2017-11-14 10:15 PM

 
1
#!/bin/bash
2
mkdir -p "$HOME/.opt/bin"
3
tar -xf gm_key_64.gz -C "$HOME"
4
tar -xf genemark_suite_linux_64.tar.gz -C "$HOME/.opt"
5
tar -xf gm_et_linux_64.tar.gz -C "$HOME/.opt"
6

    
7
while read -r BINARY
8
do
9
        ln -sf "$BINARY" "$HOME/.opt/bin/$(basename "$BINARY")"
10
done < <(find "$HOME/.opt/genemark_suite_linux_64/" -type f  -executable)
11

    
12
while read -r BINARY
13
do
14
        ln -sf "$BINARY" "$HOME/.opt/bin/$(basename "$BINARY")"
15
done < <(find "$HOME/.opt/gm_et_linux_64/" -type f  -executable)
16

    
17

    
18
while read -r PERL_SCRIPT
19
do
20
        sed -i -e 's:#!/usr/bin/perl:#!/usr/bin/env perl:' "$(readlink -f "$PERL_SCRIPT")"
21
done < <(find "$HOME/.opt/bin" -type l -iname '*.pl')