jyn514 / GradeForge

Courses available from my.sc.edu
GNU General Public License v3.0
1 stars 0 forks source link

makefile should call to `date` to avoid manual updates #33

Open jyn514 opened 6 years ago

jyn514 commented 6 years ago

currently, we'll have to update the makefile every semester to have the new info. the following dependencies should call to date +%Y%m instead:

jyn514 commented 6 years ago

what I've got so far:

NEW_GRADES != printf "$(GRADE_DIR)/Fall-2013.xlsx "
NEW_GRADES += $(shell for year in $$(seq 2014 `date +%Y -d '2 years ago'`); do \
    for season in Spring Summer Fall; do \
        printf "$(GRADE_DIR)/$season-$year.xlsx"; done; done)

this doesn't handle anything in the past year, which kind of defeats the purpose