Bläddra i källkod

🌋

undefined
Roderic Day 1 år sedan
förälder
incheckning
8b0a8dbf34
2 ändrade filer med 7 tillägg och 7 borttagningar
  1. +1
    -1
      VERSION
  2. +6
    -6
      makefile

+ 1
- 1
VERSION Visa fil

@@ -1 +1 @@
🪨
🌋

+ 6
- 6
makefile Visa fil

@@ -14,12 +14,6 @@ CODE := $(BASE).py
DATA := $(BASE).dat
TEST := $(BASE).dtt

save:
git add .
test `git log -1 --format=%s` == `cat VERSION` \
&& git commit --amend --reuse-message=head \
|| git commit -m `cat VERSION`
git log -1

main: ${TEST}
echo 'test':
@@ -29,6 +23,12 @@ clean: ${DATA}
echo 'real:'
cat ${DATA} | docker compose run --rm advent python -u ${CODE}

save:
git add .
test `git log -1 --format=%s` == `cat VERSION` \
&& git commit --amend --reuse-message=head \
|| git commit -m `cat VERSION`

${DATA} ${TEST}:
# avoid spam in the lead up to the event
test ${DAY} -le `date +%d` || test ${YEAR} -lt `date +%Y`

Laddar…
Avbryt
Spara