-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakeproject
More file actions
executable file
·32 lines (25 loc) · 819 Bytes
/
makeproject
File metadata and controls
executable file
·32 lines (25 loc) · 819 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
#!/bin/bash
#
# Makes a project in $1
# Get problem configuration
read -p "Problem name name: " -r problemname
read -p "Time limit: " -r timelimit
# Make project directory
mkdir "$1/$problemname"
# Make project structure
mkdir "$1/$problemname/eval"
mkdir "$1/$problemname/incf"
mkdir "$1/$problemname/ingen"
mkdir "$1/$problemname/okgen"
mkdir "$1/$problemname/src"
mkdir "$1/$problemname/tests"
mkdir "$1/$problemname/stage"
mkdir "$1/$problemname/oldtests"
touch "$1/$problemname/eval/makefile"
touch "$1/$problemname/incf/makefile"
touch "$1/$problemname/ingen/makefile"
touch "$1/$problemname/okgen/makefile"
cp -r ./src/* "$1/$problemname"
touch "$1/$problemname/testmanifest"
echo "problemname=$problemname" > "$1/$problemname/problemconfig"
echo "timelimit=$timelimit" >> "$1/$problemname/problemconfig"