Skip to content

Commit 0aba197

Browse files
Add type support regeneration utility to 1.2.x (#170) (#177)
* Add type support regeneration utility (#108) * Refs #20677: Add type support regeneration utility Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20677: Remove legacy script Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20677: Apply suggestions Signed-off-by: EduPonz <eduardoponz@eprosima.com> --------- Signed-off-by: EduPonz <eduardoponz@eprosima.com> * 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> * Refs #21226: Adjust script to python version 1.2.x Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com> --------- Signed-off-by: EduPonz <eduardoponz@eprosima.com> Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com> Co-authored-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> Co-authored-by: José Luis Bueno López <69244257+JLBuenoLopez-eProsima@users.noreply.github.com> (cherry picked from commit 8057dd0) Co-authored-by: Jesús Poderoso <120394830+JesusPoderoso@users.noreply.github.com>
1 parent ea8a7f1 commit 0aba197

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#!/usr/bin/env bash
2+
3+
red='\E[1;31m'
4+
yellow='\E[1;33m'
5+
textreset='\E[1;0m'
6+
7+
current_dir=$(git rev-parse --show-toplevel)
8+
9+
if [[ ! "$(pwd -P)" -ef "${current_dir}" ]]; then
10+
echo -e "${red}This script must be executed in the repository root directory.${textreset}"
11+
exit -1
12+
fi
13+
14+
if [[ -z "$(which fastddsgen)" ]]; then
15+
echo "Cannot find fastddsgen. Please, include it in PATH environment variable"
16+
exit -1
17+
fi
18+
19+
ret_value=0
20+
21+
cd ./fastdds_python/test/types
22+
echo -e "Processing ${yellow}test_complete.idl${textreset}"
23+
echo "Running: fastddsgen -replace -python test_complete.idl"
24+
fastddsgen -replace -python test_complete.idl
25+
if [[ $? != 0 ]]; then
26+
ret_value=-1
27+
fi
28+
cd -
29+
30+
if [[ $ret_value != -1 ]]; then
31+
cd "./fastdds_python_examples/HelloWorldExample"
32+
33+
echo -e "Processing ${yellow}HelloWorld.idl${textreset}"
34+
echo "Running: fastddsgen -replace -python HelloWorld.idl"
35+
fastddsgen -replace -python HelloWorld.idl
36+
fi
37+
38+
if [[ $? != 0 ]]; then
39+
ret_value=-1
40+
fi
41+
cd -
42+
43+
exit ${ret_value}

0 commit comments

Comments
 (0)