mirror of
https://github.com/kmc7468/cs220.git
synced 2025-12-14 22:18:46 +00:00
edit submit.sh file
This commit is contained in:
15
README.md
15
README.md
@@ -137,14 +137,23 @@ Make sure that you're capable of using the following development tools:
|
|||||||
|
|
||||||
- We'll announce **all** assignments before the semester begins.
|
- We'll announce **all** assignments before the semester begins.
|
||||||
- Submit your solution to <https://gg.kaist.ac.kr/course/17>.
|
- Submit your solution to <https://gg.kaist.ac.kr/course/17>.
|
||||||
|
- **How to submit your assignment:**
|
||||||
|
- To submit your solution, you should run `submit.sh` in `scripts` directory. In other words, you should run the following command:
|
||||||
|
```bash
|
||||||
|
# Run this command at the root directory of this repository.
|
||||||
|
$ ./scripts/submit.sh <assignment_number>
|
||||||
|
|
||||||
|
# E.g. To submit `assignment09`, run the following command:
|
||||||
|
$ ./scripts/submit.sh 9
|
||||||
|
```
|
||||||
|
- After running the command above, in the `target` directory, you can find a `assignment<NUMBER>.zip` file (`assignment09.zip` for example). Submit this file to <https://gg.kaist.ac.kr/course/17>.
|
||||||
- Read the documentation at <https://cp.kaist.ac.kr/cs220/cs220/>.
|
- Read the documentation at <https://cp.kaist.ac.kr/cs220/cs220/>.
|
||||||
- You can check your grade of each assignment by running the grading script.
|
- You can check your grade of each assignment by running the grading script.
|
||||||
- You can run the grading script with the following command:
|
- You can run the grading script with the following command:
|
||||||
```bash
|
```bash
|
||||||
$ ./scripts/grade.sh <assignment_number>
|
$ ./scripts/grade.sh <assignment_number>
|
||||||
```
|
|
||||||
- E.g. To grade `assignment09`, run the following command:
|
# E.g. To grade `assignment09`, run the following command:
|
||||||
```bash
|
|
||||||
$ ./scripts/grade.sh 9
|
$ ./scripts/grade.sh 9
|
||||||
```
|
```
|
||||||
- You're **allowed** to use ChatGPT or other LLMs. Instead, you'll solve more problems than previous semesters.
|
- You're **allowed** to use ChatGPT or other LLMs. Instead, you'll solve more problems than previous semesters.
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
BASEDIR=$(dirname "$0")/..
|
|
||||||
|
|
||||||
mkdir -p $BASEDIR/target
|
|
||||||
|
|
||||||
zip -rj $BASEDIR/target/assignment04.zip src/assignments/assignment04
|
|
||||||
zip -rj $BASEDIR/target/assignment11.zip src/assignments/assignment11
|
|
||||||
22
scripts/submit.sh
Executable file
22
scripts/submit.sh
Executable file
@@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ $# != 1 ]
|
||||||
|
then
|
||||||
|
echo "==============================="
|
||||||
|
echo "Invalid argument."
|
||||||
|
echo "Usage: './submit.sh <assignment_number>'"
|
||||||
|
echo "Example: './submit.sh 1' to grade assignment01"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
BASEDIR=$(dirname "$0")/..
|
||||||
|
mkdir -p $BASEDIR/target
|
||||||
|
|
||||||
|
ZIP_FILE=$(printf "$BASEDIR/target/assignment%02d.zip" $1)
|
||||||
|
SRC_PATH=$(printf "$BASEDIR/src/assignments/assignment%02d" $1)
|
||||||
|
|
||||||
|
echo $ZIP_FILE
|
||||||
|
echo $SRC_PATH
|
||||||
|
zip -rj $ZIP_FILE $SRC_PATH
|
||||||
Reference in New Issue
Block a user