From 9b734233c01e08bfc857868a0b943af7aa41a326 Mon Sep 17 00:00:00 2001 From: haskal Date: Sat, 14 Mar 2020 17:53:36 -0400 Subject: [PATCH] Add login server support to makefile; add readme --- Makefile | 17 ++++++++++++++++- README.md | 19 +++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/Makefile b/Makefile index 80c46b1..6d95822 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,12 @@ -.PHONY: all clean test c t netsim-shell pat +.PHONY: all clean test c t netsim-shell pat upload submit + +SOURCES=$(shell git ls-tree -r master --name-only) +CCIS_TEAM_NAME=hash-lang-uwu +CCIS_PROJECT_NAME=project3 +CCIS_SERVER=login.ccs.neu.edu +CCIS_PATH=CS3700/$(CCIS_PROJECT_NAME)/ +CCIS_FMT_CHECK=/course/cs3700sp20/code/project3/project3_format_check.py +CCIS_TURNIN=/course/cs3700sp20/bin/turnin all: release-build @@ -36,3 +44,10 @@ netsim-shell: .netsim pat: cat scripts/data.txt + +upload: $(SOURCES) + @rsync -avzzR --progress $^ $(CCIS_SERVER):$(CCIS_PATH) + @ssh $(CCIS_SERVER) -t -- "tput bold; $(CCIS_FMT_CHECK) $(CCIS_PATH); tput sgr0" + +submit: upload + ssh $(CCIS_SERVER) -t -- "cd $(CCIS_PATH); $(CCIS_TURNIN) $(CCIS_PROJECT_NAME) ." diff --git a/README.md b/README.md new file mode 100644 index 0000000..93af14a --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ + + __ __ __ + __/ // /_/ /___ _____ ____ _ __ ___ ____ __ + /_ _ __/ / __ `/ __ \/ __ `/ / / / / | /| / / / / / + /_ _ __/ / /_/ / / / / /_/ / / /_/ /| |/ |/ / /_/ / + /_//_/ /_/\__,_/_/ /_/\__, / \__,_/ |__/|__/\__,_/ + /____/ + +## High level approach + +TODO + +## Challenges + +TODO + +## Testing + +TODO