-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdemo.sh
More file actions
40 lines (30 loc) · 952 Bytes
/
demo.sh
File metadata and controls
40 lines (30 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
jar="code/target/workshopstats-1.0.0-standalone.jar"
set -e
read -p "RET to start demo..."
cp prepped/antworten.csv .
open -a LibreOffice antworten.csv
read -p "RET when ready to continue..."
echo "Copied prepared answers. Extracting questions:"
set -x
java -jar "$jar" -i antworten.csv questions
set +x
read -p "RET to see results..."
open -a TextEdit questions.txt prepped/questions.txt
read -p "RET when ready to continue..."
cp prepped/questions.txt .
echo "Copied prepared questions... Generating empty scores:"
set -x
java -jar "$jar" -i antworten.csv scorestruct
set +x
read -p "RET to see results..."
open -a TextEdit scores.json prepped/scores.json
read -p "RET when ready to continue..."
cp prepped/scores.json .
echo "Copied prepared scores... Scoring participants:"
set -x
java -jar "$jar" -i antworten.csv scores
set +x
read -p "RET to see results..."
open -a LibreOffice scored.csv
read -p "Demo done. RET to exit."