Add scripts to create the code archive for delivery

This commit is contained in:
2021-08-17 15:18:36 +02:00
parent 5b239d5dc0
commit beee955d46
7 changed files with 15 additions and 15 deletions

4
.gitattributes vendored Normal file
View File

@@ -0,0 +1,4 @@
* text=auto
*.sh text eol=lf
*.bat text eol=crlf

1
.gitignore vendored
View File

@@ -2,3 +2,4 @@
/.vscode
/report/*.pdf
/report/*.html
source.zip

View File

@@ -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

View File

@@ -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
View File

@@ -1 +1,2 @@
zip -r source.zip gloom/src gloom/shaders
#!/bin/sh
zip -r source.zip src shaders Cargo.lock Cargo.toml

View File

@@ -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

Binary file not shown.