# Installation script for STAR version 2.2.0g
function plugin_install_artifact {

    id=$1
    installation_path=$2

    case ${id} in


        'BINARIES' )
            VERSION="0.2.6"
            ${RESOURCES_FETCH_URL_SCRIPT} "http://downloads.sourceforge.net/project/samtools/tabix/tabix-0.2.6.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fsamtools%2Ffiles%2Ftabix%2F&ts=1364484044&use_mirror=iweb" tabix-0.2.6.tar.bz2
            bunzip2  tabix-${VERSION}.tar.bz2
            tar -xvf tabix-${VERSION}.tar
            cd tabix-${VERSION}
            make
            cp tabix ${installation_path}/
            cp bgzip ${installation_path}/
            return 0
            ;;

        *)  echo "Resource artifact id not recognized: "+$id
            return 99
            ;;

    esac

    exit 1

}

# Installation script for Tabix version 0.2.6
function plugin_install_artifact {

    id=$1
    installation_path=$2

    case ${id} in


        'BINARIES' )
            VERSION="0.2.6"
            ${RESOURCES_FETCH_URL_SCRIPT} "http://downloads.sourceforge.net/project/samtools/tabix/tabix-0.2.6.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fsamtools%2Ffiles%2Ftabix%2F&ts=1364484044&use_mirror=iweb" tabix-${VERSION}.tar.bz2
            bunzip2  tabix-${VERSION}.tar.bz2
            tar -xvf tabix-${VERSION}.tar
            cd tabix-${VERSION}
            make
            cp tabix ${installation_path}/
            cp bgzip ${installation_path}/
            return 0
            ;;

        *)  echo "Resource artifact id not recognized: "+$id
            return 99
            ;;

    esac

    exit 1

}

Fix a wrong comment and use VERSION for the dowloaded file name in RESOURCE/Tabix (2.0.6)
Fix a wrong comment and use VERSION for the dowloaded file name in  RESOURCE/Tabix (2.0.6)

git-svn-id: 9019e3cb94a522c981194da839dc9955d4aaf999@34140 60cd2ccc-2b05-0410-9566-da273a940bff
