Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
4beeb7f5
Commit
4beeb7f5
authored
7 years ago
by
Daniel Agar
Browse files
Options
Downloads
Patches
Plain Diff
delete obsolete s3 upload helpers
parent
baff0832
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+0
-31
0 additions, 31 deletions
Makefile
Tools/s3put.sh
+0
-23
0 additions, 23 deletions
Tools/s3put.sh
with
0 additions
and
54 deletions
Makefile
+
0
−
31
View file @
4beeb7f5
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Tools/s3put.sh
deleted
100755 → 0
+
0
−
23
View file @
baff0832
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment