2020-06-08 02:11:19 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ $# -lt 2 ]; then
|
2020-10-12 19:48:18 +02:00
|
|
|
echo "Usage: subject <subject name> <subject type>"
|
2020-09-22 16:44:53 +02:00
|
|
|
echo "subject type 0: programming"
|
|
|
|
echo "subject type 1: no programming"
|
2020-06-08 02:11:19 +02:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
name=$1
|
|
|
|
type=$2
|
|
|
|
|
|
|
|
if [ "$type" -eq 0 ]; then
|
|
|
|
mkdir -p "$name"/Code
|
|
|
|
mkdir -p "$name"/TP
|
|
|
|
mkdir -p "$name"/Exos
|
|
|
|
else
|
|
|
|
mkdir -p "$name"/TP
|
|
|
|
mkdir -p "$name"/Exos
|
|
|
|
fi
|