generate_param_info.sh
641 Bytes
#!/bin/bash
SCRIPT=$(readlink -f "$0")
SCRIPTDIR=$(dirname "$SCRIPT")
. ${SCRIPTDIR}/amda-kernel-env
cd ${SCRIPTDIR}/../app-generate-paraminfo
export PATH="${SCRIPTDIR}/../build/Debug/bin:$PATH"
echo ${SCRIPTDIR}/../build/Debug/bin
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}"
amdaParameterInfo -p ${param_filename}
if [ $? -eq 0 ]; then
cp info_${param_filename}.xml ${PARAM_INFO_PATH}
fi
done;