From d23bf7c6c2addca48730c397caafcf2bebdc76de Mon Sep 17 00:00:00 2001 From: Elena.Budnik Date: Wed, 20 Feb 2019 13:02:45 +0100 Subject: [PATCH] modify param properties in any case --- update_amda/generate_param_info | 71 +++++++++++++++++++++++++++++++++++++---------------------------------- 1 file changed, 37 insertions(+), 34 deletions(-) diff --git a/update_amda/generate_param_info b/update_amda/generate_param_info index ac9857b..8606241 100755 --- a/update_amda/generate_param_info +++ b/update_amda/generate_param_info @@ -35,7 +35,8 @@ do if [ -e $PARAM_INFO_PATH/$info_file ] then - echo ${param_filename} exists + #echo ${param_filename} exists + temp=a else echo "Generate info file for ${param_filename}" php $UPDATEDIR/preprocessInfo.php ${param_filename} @@ -48,39 +49,40 @@ if [ ! -e ./app.properties ]; then exit fi -if [ -e ./app.properties.temp ]; then - # rm ./app.properties.temp - echo "Seems ./app.properties has been modified already" -else - while read line - do - - if [[ $line == app.param.path* ]]; then - line="app.param.path="$NEWMETA"final/" - fi - - if [[ $line == app.dataSetInfo.path* ]]; then - line="app.dataSetInfo.path="$NEWMETA"datasets/" - fi - - if [[ $line == app.user.name* ]]; then - line="app.user.name="$DDUSER - fi - - if [[ $line == app.plugin* ]]; then - line="app.plugin=./../build/"$KERNEL_BUILD_TYPE"/plugin/" - fi - - if [[ $line == app.process.LIB* ]]; then - line="app.process.LIB=-L../build/"$KERNEL_BUILD_TYPE"/lib/ -lParameters" - fi - - echo $line >> ./app.properties.temp - - done < <(cat $AMDA_KERNEL_DIR/app-generate-paraminfo/app.properties) +# if [ -e ./app.properties.temp ]; then +# # rm ./app.properties.temp +# echo "Seems ./app.properties has been modified already" +# else +# modify app.properties in any case ! +while read line + do - cp ./app.properties.temp $AMDA_KERNEL_DIR/app-generate-paraminfo/app.properties -fi + if [[ $line == app.param.path* ]]; then + line="app.param.path="$NEWMETA"final/" + fi + + if [[ $line == app.dataSetInfo.path* ]]; then + line="app.dataSetInfo.path="$NEWMETA"datasets/" + fi + + if [[ $line == app.user.name* ]]; then + line="app.user.name="$DDUSER + fi + + if [[ $line == app.plugin* ]]; then + line="app.plugin=./../build/"$KERNEL_BUILD_TYPE"/plugin/" + fi + + if [[ $line == app.process.LIB* ]]; then + line="app.process.LIB=-L../build/"$KERNEL_BUILD_TYPE"/lib/ -lParameters" + fi + + echo $line >> ./app.properties.temp + + done < <(cat $AMDA_KERNEL_DIR/app-generate-paraminfo/app.properties) + +cp ./app.properties.temp $AMDA_KERNEL_DIR/app-generate-paraminfo/app.properties +#fi DDLogin $DDUSER $DDPASS @@ -92,7 +94,8 @@ do if [ -e $NEWMETA/ParamInfo/$info_file ] then - echo ${param_filename} exists + # echo ${param_filename} exists + temp=a else echo "Generate info file for ${param_filename}" amdaParameterInfo -p ${param_filename} -- libgit2 0.21.2