This commit is contained in:
Matthias Ringwald 2015-05-06 22:41:02 +02:00
commit 04bee3d032
3 changed files with 22 additions and 0 deletions

View File

@ -1 +1,2 @@
btstack
site

View File

@ -1,4 +1,5 @@
site_name: BTstack Manual
site_dir: btstack
pages:
- [index.md, Welcome]
- [quick_start.md, Quick Start]

View File

@ -0,0 +1,20 @@
#!/bin/bash
USAGE="Usage: upload_site_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 docs to ${host}/${path}/btstack with user ${user}
# SFTP is very peculiar: recursive put only works for a single directory
sftp ${user}@${host} << EOF
mkdir ${path}/btstack
put -r btstack ${path}
quit
EOF