Skip to content

Commit

Permalink
Build: Enhance dev scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
pan3793 committed Apr 8, 2024
1 parent 1fb533b commit 6c5d4d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
21 changes: 6 additions & 15 deletions dev/backport
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,17 @@
# limitations under the License.
#

COMMIT_ID=""
SPARK_FROM="3.4"
SPARK_TO="3.3"

function usage {
set +x
echo "./dev/backport - Tool for back port patch"
echo ""
echo "Usage:"
echo "+--------------------------------------------------------+"
echo "| ./dev/backport <commit-id> [<spark-from>] [<spark-to>] |"
echo "+--------------------------------------------------------+"
echo "+----------------------------------------------------+"
echo "| ./dev/backport <commit-id> <spark-from> <spark-to> |"
echo "+----------------------------------------------------+"
echo "commit-id: - git commit hash id"
echo "spark-from: - default value 3.4"
echo "spark-to: - default value 3.3"
echo "spark-from: - options: 3.4, 3.5"
echo "spark-to: - options: 3.3, 3.4"
echo ""
}

Expand All @@ -36,12 +32,7 @@ function exit_with_usage {
exit 1
}

if [[ $# -eq 1 ]]; then
COMMIT_ID=$1
elif [[ $# -eq 2 ]]; then
COMMIT_ID=$1
SPARK_FROM=$2
elif [[ $# -eq 3 ]]; then
if [[ $# -eq 3 ]]; then
COMMIT_ID=$1
SPARK_FROM=$2
SPARK_TO=$3
Expand Down
1 change: 1 addition & 0 deletions dev/reformat
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ set -x
PROJECT_DIR="$(cd "`dirname "$0"`/.."; pwd)"
${PROJECT_DIR}/gradlew spotlessApply -Dspark_binary_version=3.3
${PROJECT_DIR}/gradlew spotlessApply -Dspark_binary_version=3.4
${PROJECT_DIR}/gradlew spotlessApply -Dspark_binary_version=3.5

0 comments on commit 6c5d4d4

Please sign in to comment.