This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new 2c9e098ed4 chore: Fixed the go cleanup to not delete 
StaticHelper_test.go files and added deleting of generated python code.
2c9e098ed4 is described below

commit 2c9e098ed40f065d323ba757cf5caa9947016b5a
Author: Christofer Dutz <[email protected]>
AuthorDate: Thu Apr 10 23:38:39 2025 +0200

    chore: Fixed the go cleanup to not delete StaticHelper_test.go files and 
added deleting of generated python code.
---
 tools/release-0-update-generated-code.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tools/release-0-update-generated-code.sh 
b/tools/release-0-update-generated-code.sh
index c21be14064..96e846da78 100755
--- a/tools/release-0-update-generated-code.sh
+++ b/tools/release-0-update-generated-code.sh
@@ -75,7 +75,8 @@ echo " - Deleting:  $DIRECTORY/plc4c/generated-sources"
 rm -r "$DIRECTORY/plc4c/generated-sources"
 # Delete the PLC4Go code (local)
 echo " - Deleting:  generated files in $DIRECTORY/plc4c/generated-sources"
-find "$DIRECTORY/plc4go/protocols" -mindepth 2 -type f ! \( -name 
'StaticHelper.go' -o -name 'StaticHelper-test.go' \) -exec rm -v {} \;
+find "$DIRECTORY/plc4go/protocols" -mindepth 2 -type f ! \( -name 
'StaticHelper.go' -o -name 'StaticHelper_test.go' \) -exec rm -v {} \;
+# Delete the PLC4Net code (local)
 echo " - Deleting:  generated files in $DIRECTORY/plc4net/drivers"
 for dir in "$DIRECTORY/plc4net/drivers"/*; do
     # Delete generated classes
@@ -93,6 +94,9 @@ for dir in "$DIRECTORY/plc4net/drivers"/*; do
         fi
     fi
 done
+# Delete the PLC4Py code (local)
+echo " - Deleting:  generated files in $DIRECTORY/plc4py/plc4py/protocols"
+find "$DIRECTORY/plc4py/plc4py/protocols" -mindepth 2 -type f ! \( -name 
'__init__.py' -o -name 'StaticHelper.py' \) -exec rm -v {} \;
 
 
########################################################################################################################
 # 4. Make sure the NOTICE file has the current year in the second line

Reply via email to