forked from AI-comp/Orientation2016Problems
-
Notifications
You must be signed in to change notification settings - Fork 0
/
getio.sh
39 lines (28 loc) · 869 Bytes
/
getio.sh
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
rm -rf tmp
mkdir tmp
for dir in a+b bullet diagonal direction earthquake expression goban hisha lariat masshiro maximum pokemon primes robot social temperature typewriter
do
mkdir "tmp/$dir"
cp "$dir/rime-out/tests/05-small.in" "tmp/$dir/small-in.txt"
cp "$dir/rime-out/tests/05-small.diff" "tmp/$dir/small-out.txt"
cp "$dir/rime-out/tests/50-random00.in" "tmp/$dir/large-in.txt"
cp "$dir/rime-out/tests/50-random00.diff" "tmp/$dir/large-out.txt"
if [ -d "$dir/images" ]; then
cp "$dir/images" "tmp/$dir" -R
fi
statement="tmp/$dir/statement.txt"
cp "$dir/statement.md" $statement
echo "
入出力の例
==
入力
--
\`\`\`" >> $statement
cat "$dir/rime-out/tests/00-sample1.in" >> $statement
echo "\`\`\`
出力
--
\`\`\`" >> $statement
cat "$dir/rime-out/tests/00-sample1.diff" >> $statement
echo "\`\`\`" >> $statement
done