From 4c33c9704bae8c2024f778713e1c1ed692cc32f0 Mon Sep 17 00:00:00 2001 From: Ramya Krishnamoorthy Date: Wed, 6 Nov 2024 14:03:04 -0800 Subject: [PATCH 1/2] chore: prune dependencies --- Makefile | 3 +-- package.sh | 37 ------------------------------------- 2 files changed, 1 insertion(+), 39 deletions(-) delete mode 100755 package.sh diff --git a/Makefile b/Makefile index 04c1edf0..f735df52 100644 --- a/Makefile +++ b/Makefile @@ -4,8 +4,7 @@ default: pull-request-ci install-dependencies: yum update -y - yum install cmake3 clang-devel -y - (ln -s /usr/bin/cmake3 /usr/bin/cmake) || echo "cmake already installed, nothing to do" + yum install clang-devel -y compile-binaries: install-dependencies cargo --version \ diff --git a/package.sh b/package.sh deleted file mode 100755 index 91e036c1..00000000 --- a/package.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash - -# Usage: ./package.sh $tar_ball_name $bin_path -# This script will create a tar ball for the specified arch. - -set -e -set -x - -DESTINATION="packaging" -WORK_DIR="_packaging_internal" - -tar_ball_name=$1 -bin_path=$2 - -if [ -z "$tar_ball_name" ] -then - echo "ERROR: ./package.sh requires the first positional param to be the name of the tar ball." - exit 1 -fi - -if [ -z "$bin_path" ] -then - echo "ERROR: ./package.sh requires the second positional param to be the path to a binary." - exit 1 -fi - -rm -rf $WORK_DIR -mkdir -p $WORK_DIR -cp $bin_path $WORK_DIR/ - -mkdir -p $(dirname "$DESTINATION/$tar_ball_name") - -pushd $WORK_DIR - tar -czvf ../$DESTINATION/$tar_ball_name * -popd - -rm -rf $WORK_DIR From 4784ba3370e9f5cddd4366be558c9f584b81a8ad Mon Sep 17 00:00:00 2001 From: Ramya Krishnamoorthy Date: Wed, 6 Nov 2024 14:06:04 -0800 Subject: [PATCH 2/2] fix: add back file that was deleted by mistake --- package.sh | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 package.sh diff --git a/package.sh b/package.sh new file mode 100755 index 00000000..f6c4e674 --- /dev/null +++ b/package.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +# Usage: ./package.sh $tar_ball_name $bin_path +# This script will create a tar ball for the specified arch. + +set -e +set -x + +DESTINATION="packaging" +WORK_DIR="_packaging_internal" + +tar_ball_name=$1 +bin_path=$2 + +if [ -z "$tar_ball_name" ] +then + echo "ERROR: ./package.sh requires the first positional param to be the name of the tar ball." + exit 1 +fi + +if [ -z "$bin_path" ] +then + echo "ERROR: ./package.sh requires the second positional param to be the path to a binary." + exit 1 +fi + +rm -rf $WORK_DIR +mkdir -p $WORK_DIR +cp $bin_path $WORK_DIR/ + +mkdir -p $(dirname "$DESTINATION/$tar_ball_name") + +pushd $WORK_DIR + tar -czvf ../$DESTINATION/$tar_ball_name * +popd + +rm -rf $WORK_DIR +