cws/upload
author Christian Urban <christian.urban@kcl.ac.uk>
Wed, 21 Feb 2024 09:14:12 +0000
changeset 959 64ec1884d860
parent 919 53f08d873e09
permissions -rwxr-xr-x
updated and added pascal.while file
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