Blame view

script/generate_param_info.sh 641 Bytes
d04038f4   Benjamin Renard   Add script to gen...
1
2
#!/bin/bash

6c8de11c   Benjamin Renard   Remove hard coded...
3
4
SCRIPT=$(readlink -f "$0")
SCRIPTDIR=$(dirname "$SCRIPT")
d04038f4   Benjamin Renard   Add script to gen...
5

6c8de11c   Benjamin Renard   Remove hard coded...
6
. ${SCRIPTDIR}/amda-kernel-env
d04038f4   Benjamin Renard   Add script to gen...
7

6c8de11c   Benjamin Renard   Remove hard coded...
8
9
10
11
cd ${SCRIPTDIR}/../app-generate-paraminfo
export PATH="${SCRIPTDIR}/../build/Debug/bin:$PATH"

echo ${SCRIPTDIR}/../build/Debug/bin
d04038f4   Benjamin Renard   Add script to gen...
12
13
14
15
16
17
18
19

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}"
6c8de11c   Benjamin Renard   Remove hard coded...
20
    amdaParameterInfo -p ${param_filename}
d04038f4   Benjamin Renard   Add script to gen...
21
22
23
24
    if [ $? -eq 0 ]; then
        cp info_${param_filename}.xml ${PARAM_INFO_PATH}
    fi
done;