Add scripts to create the code archive for delivery
This commit is contained in:
4
.gitattributes
vendored
Normal file
4
.gitattributes
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
* text=auto
|
||||
|
||||
*.sh text eol=lf
|
||||
*.bat text eol=crlf
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,3 +2,4 @@
|
||||
/.vscode
|
||||
/report/*.pdf
|
||||
/report/*.html
|
||||
source.zip
|
||||
|
||||
12
Makefile
12
Makefile
@@ -1,12 +0,0 @@
|
||||
.PHONY: help
|
||||
help:
|
||||
@echo -e "List of make targets:\n"
|
||||
@grep "^\.PHONY: " Makefile | cut -d" " -f2- | sed -e "s/ /\n/g"
|
||||
|
||||
.PHONY: run
|
||||
run:
|
||||
cargo run
|
||||
|
||||
.PHONY: report
|
||||
report:
|
||||
make -C report
|
||||
@@ -2,6 +2,12 @@
|
||||
|
||||
To get started, make sure you have `git`, `cargo` and, `rustc` installed and available.
|
||||
|
||||
## Report
|
||||
|
||||
You're free to write your report any way you'd like, as long as it is delivered as a PDF file.
|
||||
To spread the word of *the one true way*, I have included a `pandoc` report skeleton in the `report` folder.
|
||||
To use it make sure you have `pandoc` with a supported latex engine installed, making sure it works before using it to write your report.
|
||||
To use it make sure you have `pandoc` installed along with a supported latex engine, and make sure it works before using it to write your report.
|
||||
|
||||
## Code delivery
|
||||
|
||||
To make a code archive (`source.zip`) for uploading on blackboard run either `create_code_archive_for_blackboard_LINUX.sh` or `create_code_archive_for_blackboard_WINDOWS.bat`.
|
||||
|
||||
3
create_code_archive_for_blackboard_LINUX.sh
Normal file → Executable file
3
create_code_archive_for_blackboard_LINUX.sh
Normal file → Executable file
@@ -1 +1,2 @@
|
||||
zip -r source.zip gloom/src gloom/shaders
|
||||
#!/bin/sh
|
||||
zip -r source.zip src shaders Cargo.lock Cargo.toml
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
gloom/vendor/7z/7za.exe a source.zip gloom/src gloom/shaders
|
||||
vendor/7za.exe a source.zip src shaders Cargo.lock Cargo.toml
|
||||
pause
|
||||
|
||||
BIN
vendor/7za.exe
vendored
Normal file
BIN
vendor/7za.exe
vendored
Normal file
Binary file not shown.
Reference in New Issue
Block a user