diff --git a/Makefile b/Makefile index bc8fa4504f..4a16505769 100644 --- a/Makefile +++ b/Makefile @@ -256,37 +256,6 @@ module_documentation: px4_metadata: parameters_metadata airframe_metadata module_documentation -# S3 upload helpers -# -------------------------------------------------------------------- -# s3cmd uses these ENV variables -# AWS_ACCESS_KEY_ID -# AWS_SECRET_ACCESS_KEY -# AWS_S3_BUCKET -.PHONY: s3put_firmware s3put_qgc_firmware s3put_px4fmu_firmware s3put_misc_qgc_extra_firmware s3put_metadata s3put_scan-build s3put_cppcheck s3put_coverage - -s3put_qgc_firmware: s3put_px4fmu_firmware s3put_misc_qgc_extra_firmware - -s3put_px4fmu_firmware: px4fmu_firmware - @find $(SRC_DIR)/build -name "*.px4" -exec $(SRC_DIR)/Tools/s3put.sh "{}" \; - -s3put_misc_qgc_extra_firmware: misc_qgc_extra_firmware - @find $(SRC_DIR)/build -name "*.px4" -exec $(SRC_DIR)/Tools/s3put.sh "{}" \; - -s3put_metadata: px4_metadata - @$(SRC_DIR)/Tools/s3put.sh airframes.md - @$(SRC_DIR)/Tools/s3put.sh airframes.xml - @$(SRC_DIR)/Tools/s3put.sh parameters.xml - @$(SRC_DIR)/Tools/s3put.sh parameters.md - -s3put_scan-build: scan-build - @$(SRC_DIR)/Tools/s3put.sh `find $(SRC_DIR)/build/scan-build -mindepth 1 -maxdepth 1 -type d`/ - -s3put_cppcheck: cppcheck - @$(SRC_DIR)/Tools/s3put.sh $(SRC_DIR)/build/cppcheck/ - -s3put_coverage: tests_coverage - @$(SRC_DIR)/Tools/s3put.sh $(SRC_DIR)/build/posix_sitl_default/coverage-html/ - # Astyle # -------------------------------------------------------------------- .PHONY: check_format format diff --git a/Tools/s3put.sh b/Tools/s3put.sh deleted file mode 100755 index a74cbc5740..0000000000 --- a/Tools/s3put.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -filename=${1} - -# Requires these ENV variables -# AWS_ACCESS_KEY_ID -# AWS_SECRET_ACCESS_KEY -# AWS_S3_BUCKET - -[ -z "$AWS_ACCESS_KEY_ID" ] && { echo "ERROR: Need to set AWS_ACCESS_KEY_ID"; exit 1; } -[ -z "$AWS_SECRET_ACCESS_KEY" ] && { echo "ERROR: Need to set AWS_SECRET_ACCESS_KEY"; exit 1; } -[ -z "$AWS_S3_BUCKET" ] && { echo "ERROR: Need to set AWS_S3_BUCKET"; exit 1; } - -if [ -f ${filename} ]; then - base_file_name=`basename $filename` - s3cmd --access_key=${AWS_ACCESS_KEY_ID} --secret_key=${AWS_SECRET_ACCESS_KEY} put ${filename} s3://${AWS_S3_BUCKET}/${base_file_name} -elif [ -d ${filename} ]; then - dir_name=$filename - s3cmd --access_key=${AWS_ACCESS_KEY_ID} --secret_key=${AWS_SECRET_ACCESS_KEY} put -r ${dir_name} s3://${AWS_S3_BUCKET}/ -else - echo "ERROR: ${file} doesn't exist" - exit 1 -fi