You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2024/01/06 13:53:51 UTC

(plc4x) 01/04: chore: Also delete the plc4x generated files.

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

cdutz pushed a commit to branch feature/new-ui-tool
in repository https://gitbox.apache.org/repos/asf/plc4x.git

commit 3adbca6937b123e72db7efbefccc3a0b840b8558
Author: Christofer Dutz <cd...@apache.org>
AuthorDate: Sat Jan 6 14:30:17 2024 +0100

    chore: Also delete the plc4x generated files.
---
 tools/release-0-update-generated-code.sh | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/tools/release-0-update-generated-code.sh b/tools/release-0-update-generated-code.sh
index 3f9b85e8dc..cc25a8806c 100755
--- a/tools/release-0-update-generated-code.sh
+++ b/tools/release-0-update-generated-code.sh
@@ -38,6 +38,11 @@ do
     echo " - Deleting: " $f
     rm -r $f
 done
+for f in $(find $DIRECTORY -path "plc4c/generated-sources")
+do
+    echo " - Deleting: " $f
+    rm -r $f
+done
 
 # 3. Run the maven build for all modules with "update-generated-code" enabled (Docker container)
 docker compose run --rm releaser bash /ws/mvnw -e -P with-c,with-dotnet,with-go,with-python,with-sandbox,enable-all-checks,update-generated-code -Dmaven.repo.local=/ws/out/.repository clean package
@@ -53,9 +58,10 @@ if [[ `git status --porcelain` ]]; then
   exit 0
 fi
 
+echo "Committing changes."
 # 4. Add all new files to Git (localhost)
-git add --all
+#git add --all
 
 # 5. Commit and push all changes to Git (localhost)
-git commit -m "chore: updated generated code"
-git push
\ No newline at end of file
+#git commit -m "chore: updated generated code"
+#git push
\ No newline at end of file