#!/bin/sh
# @function install jq
function InstallJQ()
{
    ShowResult "[green]正在安装JQ... [/green]" 1
    
    # install
    eval cd ${_PATH_COMPILATION_} ${_SYS_SHOW_INSTALL_DETAILS_}
    eval rm -rf ./jq-* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval tar zxvf ${_PATH_SOFTWARE_}/jq-* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval cd jq-* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval ./configure --disable-maintainer-mode ${_SYS_SHOW_INSTALL_DETAILS_}
    eval make ${_SYS_MAKE_EXT_} ${_SYS_SHOW_INSTALL_DETAILS_}
    eval make install ${_SYS_SHOW_INSTALL_DETAILS_}
    eval ln -s /usr/local/bin/jq /usr/bin/ ${_SYS_SHOW_INSTALL_DETAILS_}
    ldconfig
    
    ShowStatus $?
}