advent2021

Advent of Code 2021 Solutions
git clone git://bsandro.tech/advent2021
Log | Files | Refs | README | LICENSE

all.sh (194B)


      1 #!/bin/sh
      2 
      3 days=day*
      4 base=$(pwd)
      5 cmd="run"
      6 make=${MAKE}
      7 
      8 if [ -n "$1" ]; then
      9 	cmd=$1
     10 fi
     11 
     12 if [ -z "$make" ]; then
     13 	make="make"
     14 fi
     15 
     16 for day in $days; do
     17 	cd $day
     18 	${make} -j2 $cmd
     19 	cd $base
     20 done