generate_param_info.sh 772 Bytes
#!/bin/bash

cd ../app-generate-paraminfo

MY_GXX_HOME="/opt/tools/gcc/4.7.2/rtf"
export PATH="${MY_GXX_HOME}/bin:${PATH}"
export LD_LIBRARY_PATH="${MY_GXX_HOME}/lib64:${MY_GXX_HOME}/lib:${LD_LIBRARY_PATH}"
export OLD_PATH=$PATH

CRT_PWD=`pwd`
export PATH=${PWD}/build/Release/bin:/opt/local/bin:$OLD_PATH
export BUILD_TYPE=Release

PARAM_BASE_PATH=../../AMDA_IHM/generic_data/newKernelDDBase/
PARAM_INFO_PATH=../../AMDA_IHM/generic_data/ParamInfo/

for param_file in ${PARAM_BASE_PATH}*.xml
do
    param_filename=$(basename "${param_file%.*}")
    echo "Generate info file for ${param_filename}"
    ../build/Release/bin/amdaParameterInfo -p ${param_filename}
    if [ $? -eq 0 ]; then
        cp info_${param_filename}.xml ${PARAM_INFO_PATH}
    fi
done;

cd ${CRT_PWD}