mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-22 06:41:17 +00:00
try to automate upload of btstack-arduino-latest.zip
This commit is contained in:
parent
bed744a565
commit
5bf84c0b9d
@ -42,3 +42,4 @@ release: update_version
|
||||
cp -r ${PATHS} ${BTSTACK_PACKAGE}
|
||||
rm -f ${ARCHIVE}
|
||||
zip -r ${ARCHIVE} btstack
|
||||
cp ${ARCHIVE} btstack-arduino-latest.zip
|
||||
|
19
platforms/arduino/upload_latest_sftp.sh
Executable file
19
platforms/arduino/upload_latest_sftp.sh
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
USAGE="Usage: upload_latest_sftp.sh host path user"
|
||||
|
||||
# command line checks, bash
|
||||
if [ $# -ne 3 ]; then
|
||||
echo ${USAGE}
|
||||
exit 0
|
||||
fi
|
||||
host=$1
|
||||
path=$2
|
||||
user=$3
|
||||
|
||||
echo Uploading generated archive to ${host}/${path} with user ${user}
|
||||
|
||||
# SFTP is very peculiar: recursive put only works for a single directory
|
||||
sftp ${user}@${host} << EOF
|
||||
put btstack-arduino-latest.zip ${path}
|
||||
quit
|
||||
EOF
|
Loading…
x
Reference in New Issue
Block a user