From 5f6f4e0e8245dba8d5762391c300d08093d531ac Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Thu, 27 Feb 2020 18:24:10 +0100 Subject: [PATCH] Added script upload-doc.sh to upload to ETSI FTP Signed-off-by: garciadeblas --- upload-doc.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 upload-doc.sh diff --git a/upload-doc.sh b/upload-doc.sh new file mode 100755 index 0000000..49872f0 --- /dev/null +++ b/upload-doc.sh @@ -0,0 +1,18 @@ +#!/bin/bash +make clean +for i in [0-1]*.md; do sed -i "s/\.md\#/\.html\#/g" $i; done +make html +read -p "Please enter your username for FTP server (ETSI On Line account): " USER_INPUT +read -sp "Please enter your password for FTP server: " PASSWORD_INPUT +echo +lftp -u $USER_INPUT,$PASSWORD_INPUT ftp://osm-download.etsi.org << ! + set ftp:ssl-allow no + lcd _build + cd Documentation + mirror -R html vnf-onboarding-guidelines-new + rm -r vnf-onboarding-guidelines + mv vnf-onboarding-guidelines-new vnf-onboarding-guidelines + bye +! +git reset --hard + -- GitLab