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 40ea1a5e62 chore: Minor updating of the release scripts.
40ea1a5e62 is described below
commit 40ea1a5e62d201c3113938ae7b8b1f5d30eb75b3
Author: Christofer Dutz <[email protected]>
AuthorDate: Wed Apr 9 20:28:03 2025 +0200
chore: Minor updating of the release scripts.
---
tools/check_sigs.sh | 4 +-
tools/release-0-update-generated-code.sh | 8 ++--
tools/release-abort.sh | 19 --------
tools/validate-release.sh | 76 --------------------------------
4 files changed, 6 insertions(+), 101 deletions(-)
diff --git a/tools/check_sigs.sh b/tools/check_sigs.sh
index e8a3dabcf4..f2906dbb14 100755
--- a/tools/check_sigs.sh
+++ b/tools/check_sigs.sh
@@ -21,10 +21,10 @@
set -e
-# Checks the signatures of all bundles in the build/release-edgent directory
+# Checks the signatures of all bundles in the build/release directory
# Or checks the bundles in the specified directory
-. `dirname $0`/common.sh
+. "$(dirname "$0")"/common.sh
setUsage "$(basename "$0") [bundle-directory]"
handleHelp "$@"
diff --git a/tools/release-0-update-generated-code.sh
b/tools/release-0-update-generated-code.sh
index a564d1f60c..556bac75b1 100755
--- a/tools/release-0-update-generated-code.sh
+++ b/tools/release-0-update-generated-code.sh
@@ -18,6 +18,7 @@
# specific language governing permissions and limitations
# under the License.
# ----------------------------------------------------------------------------
+
DIRECTORY=..
# 0. Check if there are uncommitted changes as these would automatically be
committed (local)
@@ -33,10 +34,9 @@ rm -r $DIRECTORY/out
# 2. Delete all generated sources (local)
echo "Deleting generated-sources:"
-for f in $(find $DIRECTORY -path "*/src/main/generated")
-do
- echo " - Deleting: " $f
- rm -r $f
+find "$DIRECTORY" -path "*/src/main/generated" -print0 | while IFS= read -r -d
'' f; do
+ echo " - Deleting: $f"
+ rm -r "$f"
done
# Delete the PLC4C code (local)
echo " - Deleting: $DIRECTORY/plc4c/generated-sources"
diff --git a/tools/release-abort.sh b/tools/release-abort.sh
index a47087d4b3..4d8653994c 100755
--- a/tools/release-abort.sh
+++ b/tools/release-abort.sh
@@ -1,24 +1,5 @@
#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
# ----------------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
diff --git a/tools/validate-release.sh b/tools/validate-release.sh
index 18992aede2..7a1c50defc 100755
--- a/tools/validate-release.sh
+++ b/tools/validate-release.sh
@@ -1,81 +1,5 @@
#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
# ----------------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file