cws/upload
author Christian Urban <christian.urban@kcl.ac.uk>
Thu, 17 Nov 2022 11:34:50 +0000
changeset 445 b73e7ce91c10
parent 427 6e93040e3378
child 459 d59404a41d5f
permissions -rwxr-xr-x
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
355
bc3980949af2 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     1
#!/bin/bash
bc3980949af2 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     2
set -euo pipefail
bc3980949af2 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     3
400
e48ea8300b2d updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 355
diff changeset
     4
fls=${1:-"core_cw01.pdf core_cw02.pdf core_cw03.pdf main_cw01.pdf main_cw02.pdf main_cw03.pdf main_cw04.pdf main_cw05.pdf"} 
355
bc3980949af2 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     5
bc3980949af2 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     6
for f in $fls; do
bc3980949af2 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     7
    echo -e "uploading $f"
bc3980949af2 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     8
done    
bc3980949af2 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     9
bc3980949af2 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    10
bc3980949af2 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    11
scp $fls k1192855@bastion:public_html
bc3980949af2 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    12
bc3980949af2 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    13
bc3980949af2 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    14
#hg commit -m "updated jars"
bc3980949af2 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    15
427
6e93040e3378 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 400
diff changeset
    16
# prevent PDF from being copied
6e93040e3378 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 400
diff changeset
    17
###gs -o output.pdf -dNoOutputFonts -sDEVICE=pdfwrite main_cw01.pdf