main_marking1/mk_main1
author Christian Urban <christian.urban@kcl.ac.uk>
Fri, 26 Apr 2024 17:37:56 +0100
changeset 488 5deaf53c2faa
parent 424 daf561a83ba6
permissions -rwxr-xr-x
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
424
Christian Urban <christian.urban@kcl.ac.uk>
parents: 388
diff changeset
     1
#!/bin/bash
388
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     2
###set -e
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     3
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     4
trap "exit" INT
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     5
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     6
files=${1:-*/main1}
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     7
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     8
for sd in $files; do
424
Christian Urban <christian.urban@kcl.ac.uk>
parents: 388
diff changeset
     9
  echo -e "\n"  
388
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    10
  cd $sd
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    11
  echo $sd
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    12
  touch .
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    13
  cp ../../../../../main_marking1/drumb_test.sh .
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    14
  cp ../../../../../main_marking1/drumb_test1.scala .
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    15
  cp ../../../../../main_marking1/drumb_test2.scala .
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    16
  cp ../../../../../main_marking1/drumb_test3.scala .
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    17
  cp ../../../../../main_marking1/drumb_test4.scala .
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    18
  cp ../../../../../main_marking1/drumb_test5.scala .
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    19
  cp ../../../../../main_marking1/drumb_test6.scala .
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    20
  cp ../../../../../main_marking1/drumb_test7.scala .
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    21
  cp ../../../../../main_marking1/*.csv .
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    22
  ./drumb_test.sh output
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    23
  rm drumb_test.sh
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    24
  rm drumb_test1.scala
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    25
  rm drumb_test2.scala
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    26
  rm drumb_test3.scala
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    27
  rm drumb_test4.scala
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    28
  rm drumb_test5.scala
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    29
  rm drumb_test6.scala
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    30
  rm drumb_test7.scala
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    31
  rm *.csv
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    32
  cd ..
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    33
  cd ..
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    34
done
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    35
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    36