Closed ron003 closed 8 months ago
Additional info:
If you look at Kurt script...
I set the following variables:
detector_release_name=$(dbt-info release | grep 'Release name:' | awk '{print $3}') base_release_name=$(dbt-info release | grep 'Base release name:' | awk '{print $4}') detector_release_dir=$(dbt-info release | grep 'Release dir:' | awk '{print $3}') base_release_dir=$(echo ${detector_release_dir} | sed "s/${detector_release_name}/${base_release_name}/g")
Then I run something like:
for pp in appfwk dfmodules ers erskafka fdreadoutlibs fdreadoutmodules iomanager\ listrev logging opmonlib readoutlibs serialization trigger utilities;do xx=$(daq-release/scripts/checkout-daq-package.py -p $pp -o $DBT_AREA_ROOT/sourcecode -i ${detector_release_dir}/spack-installation/spack-repo/${detector_release_name}.yaml 2>&1) && echo "$xx" || \ ./daq-release/scripts/checkout-daq-package.py -p $pp -o $DBT_AREA_ROOT/sourcecode -i ${base_release_dir}/spack-installation/spack-repo/${base_release_name}.yaml done
It would be perfect if the -o and -i options had defaults that matched what I get from the variables so I would not have to set/use the variables.
… work