cws/upload
author Christian Urban <christian.urban@kcl.ac.uk>
Tue, 03 Oct 2023 23:23:57 +0100
changeset 938 91c20364402b
parent 919 53f08d873e09
permissions -rwxr-xr-x
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
901
33cff35bdc1a updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     1
#!/bin/bash
33cff35bdc1a updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     2
set -euo pipefail
33cff35bdc1a updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     3
33cff35bdc1a updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     4
fls=${1:-"cw01.pdf cw02.pdf cw03.pdf cw04.pdf cw05.pdf"} 
33cff35bdc1a updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     5
33cff35bdc1a updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     6
for f in $fls; do
33cff35bdc1a updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     7
    echo -e "uploading $f"
33cff35bdc1a updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     8
done    
33cff35bdc1a updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     9
33cff35bdc1a updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    10
919
53f08d873e09 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 901
diff changeset
    11
scp $fls k1192855@bastion:public_html/cfl/cws
53f08d873e09 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 901
diff changeset
    12
901
33cff35bdc1a updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    13
919
53f08d873e09 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 901
diff changeset
    14
#hg commit -m "updated jars"
53f08d873e09 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 901
diff changeset
    15
53f08d873e09 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 901
diff changeset
    16
# prevent PDF from being copied
53f08d873e09 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 901
diff changeset
    17
###gs -o output.pdf -dNoOutputFonts -sDEVICE=pdfwrite main_cw01.pdf