#!/bin/sh
# @function install jsoncpp
function InstallJsoncpp()
{
    ShowResult "[green]正在安装jsoncpp... [/green]" 1
    
    # install scrons
    eval cd ${_PATH_COMPILATION_} ${_SYS_SHOW_INSTALL_DETAILS_}
    eval rm -rf ./jsoncpp* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval tar zxvf ${_PATH_SOFTWARE_}/jsoncpp* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval cd jsoncpp* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval scons platform=linux-gcc ${_SYS_SHOW_INSTALL_DETAILS_}
    eval cd libs/linux-gcc-4.8.2 ${_SYS_SHOW_INSTALL_DETAILS_}
    eval \cp -f ./* /usr/local/lib/ ${_SYS_SHOW_INSTALL_DETAILS_}
    eval cd ../../include ${_SYS_SHOW_INSTALL_DETAILS_}
    eval mv json /usr/local/include/json ${_SYS_SHOW_INSTALL_DETAILS_}
    eval ldconfig ${_SYS_SHOW_INSTALL_DETAILS_}
    
    ShowStatus $?
}