got fed up of sftp, use rsync then ssh cp, much faster
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 22 Aug 2022 11:43:40 +0000 (12:43 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 22 Aug 2022 11:43:40 +0000 (12:43 +0100)
openpower/Makefile

index f7c0cc733ae742dfd236b740b03292b3d5e8aa56..c3d99d8202b6fe7f3efbd35c7fb08c3e81d031b4 100755 (executable)
@@ -426,8 +426,8 @@ simple_v_spec.pdf : tex simple_v_spec.tex
 pdf : simple_v_spec.pdf
 
 upload : pdf
-       echo 'put simple_v_spec.pdf' | \
-       sftp  ftp@libre-soc.org:/var/www/ftp.libre-riscv.org
+       rsync -HPavz simple_v_spec.pdf libre-soc.org:
+       ssh libre-soc.org 'cp simple_v_spec.pdf /var/www/ftp.libre-riscv.org'
 
 clean:
        rm -fr tex_out simple_v_spec.aux simple_v_spec.out simple_v_spec.toc