Skip to content

Commit 3038ac5

Browse files
authored
Hotfix: type regeneration script (#115)
* Refs #20734: fix type regeneration script Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #20734: regenerate types using script Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> --------- Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>
1 parent c487e30 commit 3038ac5

2 files changed

Lines changed: 19 additions & 22 deletions

File tree

fastdds_python_examples/HelloWorldExample/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
cmake_minimum_required(VERSION 3.16.3)
2+
cmake_minimum_required(VERSION 3.22)
33

44
# SWIG: use standard target name.
55
if(POLICY CMP0078)
Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
#!/usr/bin/env bash
22

3-
idl_files=(
4-
'./fastdds_python/test/types/test_modules.idl'
5-
'./fastdds_python/test/types/test_complete.idl'
6-
'./fastdds_python/test/types/test_included_modules.idl'
7-
'./fastdds_python_examples/HelloWorldExample/HelloWorld.idl'
8-
)
9-
103
red='\E[1;31m'
114
yellow='\E[1;33m'
125
textreset='\E[1;0m'
@@ -25,22 +18,26 @@ fi
2518

2619
ret_value=0
2720

28-
for idl_file in "${idl_files[@]}"; do
29-
idl_dir=$(dirname "${idl_file}")
30-
file_from_gen=$(basename "${idl_file}")
31-
32-
echo -e "Processing ${yellow}${idl_file}${textreset}"
33-
34-
cd "${idl_dir}"
21+
cd ./fastdds_python/test/types
22+
echo -e "Processing ${yellow}test_complete.idl test_modules.idl${textreset}"
23+
echo "Running: fastddsgen -cdr both -replace -python test_complete.idl test_modules.idl"
24+
fastddsgen -cdr both -replace -python test_complete.idl test_modules.idl
25+
if [[ $? != 0 ]]; then
26+
ret_value=-1
27+
fi
28+
cd -
3529

36-
echo "Running: fastddsgen -cdr both -replace -flat-output-dir -python ${file_from_gen}"
37-
fastddsgen -cdr both -replace -flat-output-dir -python ${file_from_gen}
30+
if [[ $ret_value != -1 ]]; then
31+
cd "./fastdds_python_examples/HelloWorldExample"
3832

39-
if [[ $? != 0 ]]; then
40-
ret_value=-1
41-
fi
33+
echo -e "Processing ${yellow}HelloWorld.idl${textreset}"
34+
echo "Running: fastddsgen -cdr both -replace -python HelloWorld.idl"
35+
fastddsgen -cdr both -replace -python HelloWorld.idl
36+
fi
4237

43-
cd -
44-
done
38+
if [[ $? != 0 ]]; then
39+
ret_value=-1
40+
fi
41+
cd -
4542

4643
exit ${ret_value}

0 commit comments

Comments
 (0)